Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

python logging alternatives [closed]

The Python logging module is cumbersome to use. Is there a more elegant alternative? Integration with desktop notifications would be a plus.

like image 632
hoju Avatar asked Oct 07 '10 02:10

hoju


People also ask

Are Python loggers thread-safe?

The logging module is thread-safe; it handles the locking for you.

What are the five levels of logging in Python?

In Python, the built-in logging module can be used to log events. Log messages can have 5 levels - DEBUG, INGO, WARNING, ERROR and CRITICAL. They can also include traceback information for exceptions. Logs can be especially useful in case of errors to help identify their cause.

What are the Python logging levels?

There are six log levels in Python; each level is associated with an integer that indicates the log severity: NOTSET=0, DEBUG=10, INFO=20, WARN=30, ERROR=40, and CRITICAL=50. All the levels are rather straightforward (DEBUG < INFO < WARN ) except NOTSET, whose particularity will be addressed next.


1 Answers

You can look into Twiggy, it's an early stage attempt to build a more pythonic alternative to the logging module.

like image 75
AndrewF Avatar answered Sep 27 '22 23:09

AndrewF