Skip to content

fix: use slog instead of log to specify stdout/stderr for different l…#110

Open
qafy wants to merge 1 commit into
d-Rickyy-b:masterfrom
qafy:fix/switch-stderr-on-loglevel
Open

fix: use slog instead of log to specify stdout/stderr for different l…#110
qafy wants to merge 1 commit into
d-Rickyy-b:masterfrom
qafy:fix/switch-stderr-on-loglevel

Conversation

@qafy

@qafy qafy commented Jun 29, 2026

Copy link
Copy Markdown

We had some problems in our setup related to #73. Our global logging instance uses the systemd journal as a source and we also host the ct server within a container and with the current server version all logging messages generate an error in our setup. I changed the logging setup to use slog instead of log as suggested in the issue and added log levels. Now only Error and warning messages get relayed to stderr everything else is written to stdout.

@d-Rickyy-b

Copy link
Copy Markdown
Owner

Thank you for the PR. I already added some new features and new places where logging will happen, so after merging dev, this PR will become outdated.

I will definitely update this PR and merge after I merged dev into master. Leveled logging is something I wanted to implement for some time now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants