Skip to content

Logging configuration override could use improvements #27

Answered by br3ndonland
chbndrhnns asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for your report. A few suggestions that may help:

  • In your first example, the module path is set to app.core.logging_conf. This path does not appear to exist. Have you tried app.logging_conf?
  • I would recommend using an absolute path (with a leading /) for the file path in your second example, to ensure the path is correct when running with Docker: LOGGING_CONF=/app/app/logging_conf.py.
  • In order to use a custom logging class, you will need to tell the logging module to instantiate the class. Instead of "class": "app.my_logger.MyFormatter", try "()": "app.my_logger.MyFormatter".
  • The custom logging examples in the README were updated in 4a280ac. I hope the additional information is…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by br3ndonland
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants