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

Add feature to allow logging configuration to be specified at runtime #106

Merged
merged 3 commits into from
Oct 22, 2024

Conversation

ehclark
Copy link
Contributor

@ehclark ehclark commented Oct 22, 2024

Implementation for #104

When AnyVar starts up it will examine the value of the ANYVAR_LOGGING_CONFIG environment variable. If the value points to a file, either absolute or relative path, AnyVar will attempt to load it, parse it as YAML and use the resulting data structure to configure the logging module using dictConfig().

@ehclark ehclark linked an issue Oct 22, 2024 that may be closed by this pull request
@ehclark ehclark merged commit 8c0bf96 into main Oct 22, 2024
5 checks passed
@ehclark ehclark deleted the log-config-file branch October 22, 2024 20:05
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.

Provide a logging configuration file loading mechanism
3 participants