Run the a.py script. You'll see colorized log statements in your console.
You'll also see that it creates a file /tmp/clepy.log with more information.
The boto package is great for working with Amazon web services (AWS).
The script b.py shows how to use it.
But boto produces a TON of debug-level logs!
- loggers
- handlers
- formatters
- local files
- database
- graylog
The logrotate program is super nice. If you log to local text files, you ought to set it up. The RotatingFileHandler is
Here's a post on the python logging package that I wrote almost ten years ago:
And a talk I did at PyOhio in 2012 (when I thought silly chin beards looked cool):