repoxplorer icon indicating copy to clipboard operation
repoxplorer copied to clipboard

How do I make logging work with "docker logs"?

Open evangineer opened this issue 4 years ago • 2 comments

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.

evangineer avatar Oct 13 '20 18:10 evangineer

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 .

morucci avatar Oct 14 '20 06:10 morucci

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.

evangineer avatar Oct 14 '20 10:10 evangineer