News for hackers. Stuff that matters.
Re:Logging in Python like a pro by bakpakin on Friday July 01, 2022 @05:08PM (#31952967)
anyone else just define a function log(msg) the prints to stderr or maybe stdout and use that instead for simple programs/daemons? I never really got the big value proposition of seven-leveled logging or the complexity of it. If I need to customize it I just change my log function.
Re:Logging in Python like a pro by bbkane on Friday July 01, 2022 @11:28PM (#31955915)
That works for most cases, but many 3rd party libraries (like requests) integrate with the built in logging library, so if you want to log that info you're back to working with the stdlib logging