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
Any guidance on adding a custom formatter? #20
Comments
Hi @rileyjenk I don't have any examples right now. But you can just add your custom formatter to the config file as usual. formatters:
myFormatter:
'()': The.import.path.of.your.Formatter
handlers:
console:
class: logging.StreamHandler
level: INFO
formatter: myFormatter
stream: ext://sys.stdout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The changelog indicates that custom fields may be added. Ideally we would like to use the
https://github.com/madzak/python-json-logger
format.Do you have an example of adding an external formatter rather than the basic format parameter options?
Do you have an example of setting the formatter so that it will extract certain fields if they exist?
The text was updated successfully, but these errors were encountered: