-
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
Logging to file for action server #306
Conversation
…ion_arguments, adding logging file arguments in parset in endpoint.py
Linked issue here #161 |
Awesome! Hope the project owners review this. 💯 |
Thanks for submitting a pull request 🚀 @melindaloubser1 will take a look at it as soon as possible ✨ |
Wouldn't it be better to use a RotatingFileHandler directly? This would allow you to set |
RotatingFileHandler seems to be a better choice than FileHandler. What do you think should be the value of |
I don't have any current examples of how big the Rasa Logs would be, maybe someone from Rasa could give an estimate? But I agree that This functionality is important for us, as we're looking for ways to configure ingestion of multi-line logs in Datadog, and the log file would probably be the easiest way to achieve it, apart from the nonplusultra solution, which would be allowing a custom log formatter or log configuration file to be provided. |
The action server runs separately from the rasa server, so logging to files for custom actions should be configured on the action server itself (whether rasa-sdk or another action server). The changes look like they're configuring logging of all logs to a file (for the rasa server). Can you clarify the desired behaviour of the change? |
valid point. I have updated the code to configure logging only for action server. I gave "rasa_sdk" as the name for the named logger. so now the configuration is only for loggers within the module rasa_sdk. Could you review my latest changes? @melindaloubser1 |
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.
The logging to file works great, but it seems to set the logging level to debug
regardless of what is passed as the log level - could you look into that?
Ok I will look into it |
Hi @melindaloubser1 I noticed that the logger for matplotlib is set to WARN and logger for loglevel for sanic logger is set by environment variables. I have't changed any of those. But let me know if these loglevels also needs to controlled by the arguement passed in the command line args |
fixing the |
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.
Can you run make formatter
and apply the changes? The linting step is failing.
sure @melindaloubser1 |
Sorry one more thing, can you add a changelog entry please? You'll find instructions for that in the changelog/README.md |
added a changelog entry. |
Proposed changes:
Status (please check what you already did):
black
(please check Readme for instructions)