Skip to content Skip to sidebar Skip to footer

Python Logger In Docker Is Not Working

I am trying to use my python app on docker. I'm using a package called autologging which is actually using python's logging library. When I use my app inside a docker container it

Solution 1:

The autologging module uses Python's standard logging module. As such, it is governed by the same configuration settings. If you are simply not seeing any log output, please make sure that you are configuring logging appropriately for the application. (I myself am not familiar with Docker; it may simply be the case that the root logger is by default suppressing the log entries.)

If you haven't explicitly configured logging for your application, please refer to the Python documentation here. If you have explicitly configured logging for your application, please provide details (there is an open issue to track this at https://github.com/mzipay/Autologging/issues/1).

(Note: I am the author of autologging.)

Post a Comment for "Python Logger In Docker Is Not Working"