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

Separate console/file logging #253

Merged
merged 4 commits into from
Dec 30, 2023
Merged

Separate console/file logging #253

merged 4 commits into from
Dec 30, 2023

Conversation

n8maninger
Copy link
Member

@n8maninger n8maninger commented Dec 29, 2023

Adds additional configuration for controlling logging locations and formats. Closes #176

log:
  level: info # global log level. Defaults to info. Can be overridden per log type
  stdout:
    enabled: true # enable or disable stdout logging. Defaults to true
    level: info # stdout log level. Defaults to the global log level.
    format: human # set the log format. Either "human" or "json". Defaults to "human"
    enableANSI: true # enable or disable stdout log colors. Defaults to false on Windows, true everywhere else
  file:
    enabled: true # enable or disable file logging
    level: info # file log level. Defaults to the global log level.
    format: json # set the log format. Either "human" or "json". Defaults to "json"
    path: /my/logpath/hostd.log # set the log file location. Defaults to hostd.log in the data directory

@n8maninger n8maninger merged commit f2e88c3 into master Dec 30, 2023
6 checks passed
@n8maninger n8maninger deleted the nate/set-logging-location branch December 30, 2023 19:48
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.

Rationalise the logging outputs
1 participant