Debugging or logging custom component

I’m currently trying to write a custom component (which is not working yet) and I would like to log or debug to find the problem. How do I perform this ? I tried to use the logger python, but I can’t find where the log are (I’m just using the NLU part for now, which is on a docker container)

Thank you in advance

P.S : I can’t close my own topic apparently, but I found the problem (the log component returned before the log)

Could you please share your solution? I have the same issue

Well I don’t remember the bug, but I’m using the python logger :

import logging
logger = logging.getLogger(__name__)

and then"LOG")

I’ve been having this issue for a while. I tried the solution detailed in another forum thread (find it here: How to retrieve logs from the action server (locally)) with no luck. But the solution proposed by @huberrom seems to work great.

Please use below code

import the logging library

import logging


Get an instance of a logger

logger = logging.getLogger(name)

Sorry for the late update. I got it working in the end with pretty much the same code

import logging
logger = logging.getLogger(__name__)
logger.debug("some debug message")"some info message")