-
Notifications
You must be signed in to change notification settings - Fork 235
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
2.8.x allow external logging formatters #836
Conversation
@tmbo Here the PR I mentioned during the call on Tuesday. |
@raoulvm I've taken a closer look and ideally I'd like to aim at a unified solution across our different product parts (SDK, Rasa Open Source, Rasa Enterprise). A standard method for the configuration of the logging system is to use a file based configuration rather than relying on code / a custom environment variable. I'd propose the following:
Does this solve your configuration needs for logging? |
Hi @tmbo this looks great, different though, so I have to look deeper into that. Our current implementation uses a modified logger class, and that is not configurable using the standard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, we still need to implement the logging part :D (we only shipped the exception handler part of the PR) |
Jumped the gun there @tmbo 🙈 |
Proposed changes:
To be able to use structured logging, there has to be a dedicated method to define the logger for the Rasa SDK server:
RASA_LOGGER_PYMODULE
to store the python package name of the custom loggerBackground: we use GrayLog with JSON extractor for all our servers, and
Status (please check what you already did):
black
(please check Readme for instructions)