The Python logging module is cumbersome to use. Is there a more elegant alternative? Integration with desktop notifications would be a plus.
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
Checkout logbook, it is much nicer to work with.
Logbook was mentioned in a comment but it deserves its own answer.
You can look into Twiggy, it's an early stage attempt to build a more pythonic alternative to the logging module.
You might want to have a look at pysimplelog. It's pure python, very simple to use, pip installable and provides what you need
and with those parameters, a 'simplelog.log' file will be created and updated automatically for you
you can config logfile with console and file,I don't think desktop notication is a good idea,you can see the log information from console and logfiles