Re:Logging in Python like a pro
by LtWorf on Friday July 01, 2022 @02:22PM
(#31950577)
I normally just import syslog or journald. The latter allows for arbitrary fields to be defined and then searched, but it's not in the stdlib.
[ Parent
| on HN ]
Re:Logging in Python like a pro
by 1337shadow on Friday July 01, 2022 @03:14PM
(#31951316)
Great idea but how do you work this out in a container where the python process is PID 1?
bind mount /dev/log in the container of course.
Also logging can be set up remotely, but it's easier to do like that from the container and then configure the hos to send everything to a single log machine.