repoxplorer
repoxplorer copied to clipboard
How do I make logging work with "docker logs"?
Have already made an initial foray into config.py
and started playing with the settings in base_logging
.
Switching from normal
to console
for the root
but that doesn't seem to have done any good.
Setting the propagate
setting for the loggers from False
to True
.
Turning up the console handler from INFO
to DEBUG
.
Just want to avoid any gotchas.
The way we use docker might need a rework indeed the container is a all in one where services are started by supervisord. Ideally we might need a docker compose with one container by service.
But you should have a look to http://supervisord.org/logging.html probably there is a way to tell supervisord to redirect child processes to stdout that will make docker logs display what you expect.
Le mar. 13 oct. 2020 à 20:03, Mamading Ceesay [email protected] a écrit :
Have already made an initial foray into config.py and started playing with the settings in base_logging.
Just want to avoid any gotchas.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/morucci/repoxplorer/issues/65, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAUUZ2IW6AYYAFJMDPXC7TSKSI5JANCNFSM4SPL5QKQ .
Yeah, was looking into this last night and came across this: https://stackoverflow.com/questions/18683810/docker-supervisord-and-logging-how-to-consolidate-logs-in-docker-logs
Will try implementing supervisor-stdout.