Hi everyone,
I have several custom actions running on my action server. I would like to get custom log messages from within these custom actions using the logging
module. However, I cannot find the logs I am generating.
I use:
import logging
logger = logging.Logger(__name__)
# in any function
logger.debug("Some log message")
If I run my action server locally with: rasa run actions --actions actions --debug
, these log messages do not appear although the function is executed. The only logs I get are of the form:
2019-08-06 12:00:14 DEBUG rasa.cli.utils - 'actions.py' not found. Using default location 'actions' instead.
2019-08-06 12:00:14 INFO rasa_sdk.endpoint - Starting action endpoint server...
2019-08-06 12:00:20 INFO rasa_sdk.executor - Registered function for 'action_display_selector'.
2019-08-06 12:00:20 INFO rasa_sdk.executor - Registered function for 'action_explain'.
2019-08-06 12:00:20 INFO rasa_sdk.executor - Registered function for 'action_show_pictures'.
2019-08-06 12:00:20 INFO rasa_sdk.executor - Registered function for 'form_contact'.
2019-08-06 12:00:20 INFO rasa_sdk.executor - Registered function for 'form_preferences'.
2019-08-06 12:00:20 INFO rasa_sdk.endpoint - Action endpoint is up and running. on ('0.0.0.0', 5055)
2019-08-06 12:01:20 DEBUG rasa_sdk.executor - Received request to run 'action_display_selector'
2019-08-06 12:01:20 DEBUG rasa_sdk.executor - Finished running 'action_display_selector'
127.0.0.1 - - [2019-08-06 12:01:20] "POST /webhook HTTP/1.1" 200 208 0.515258
Do you know where and how I can retrieve my custom log messages?
Thanks a lot for your help! Best, Nicolas
EDIT: Stackoverflow link: logging - In Rasa SDK, how can I retrieve logs from the action server running locally? - Stack Overflow