Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use lumberjack as the logging core #3

Merged
merged 3 commits into from
May 31, 2020
Merged

Conversation

travitch
Copy link
Contributor

This regularizes the logging infrastructure to not emit messages and use the
logging API directly. This will let us more easily support sending logs to
files as well as the in-memory buffer.

This uses a custom log message type modeled after the one from lumberjack. It
attempts to hide the fact that it uses lumberjack to make future updates to call
sites a bit easier (hopefully).

This regularizes the logging infrastructure to not emit messages and use the
logging API directly.  This will let us more easily support sending logs to
files as well as the in-memory buffer.

This uses a custom log message type modeled after the one from lumberjack.  It
attempts to hide the fact that it uses lumberjack to make future updates to call
sites a bit easier (hopefully).
This includes commands to change the file log target at run-time
Switching architectures threw away the file logger before this change.

This change also creates the directory for the log file.
@travitch travitch merged commit 927d0ad into master May 31, 2020
@travitch travitch deleted the tr/structured-logging branch May 31, 2020 05:32
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.

1 participant