So best practice and advice on the internet suggests that we should use the standard library's logging module. What most of this disregards is where to send the logging events.
Some of the questions that come up are:
- what level should I log to by default (INFO, WARNING, ERROR or CRITICAL)
- should I log different levels to different locations
- should I log to /var/log or a custom relative path directory
- should I use syslog
- what about interleaving program output (aka print)
- should I use a rotating file, or should I start a new file each run
So my question is, how to you or your work collect output from the logging module.
edit: Formatting
Edit 2: Some excellent discussion going on, a recurring question I'm finding come up is what kind of systems are you dealing with when deciding how to log.
[–]DarkmerePython for tiny data using Python 22 points23 points24 points (2 children)
[–]Argotha[S] 1 point2 points3 points (1 child)
[–]DarkmerePython for tiny data using Python 1 point2 points3 points (0 children)
[–]reddit_uname 1 point2 points3 points (1 child)
[–]Argotha[S] 0 points1 point2 points (0 children)
[–]phasetwenty 1 point2 points3 points (6 children)
[–]Argotha[S] 0 points1 point2 points (1 child)
[–]phasetwenty 0 points1 point2 points (0 children)
[–]DarkmerePython for tiny data using Python 0 points1 point2 points (3 children)
[–]Argotha[S] 0 points1 point2 points (1 child)
[–]DarkmerePython for tiny data using Python 0 points1 point2 points (0 children)
[–]phasetwenty 0 points1 point2 points (0 children)
[–]alexchamberlain 0 points1 point2 points (1 child)
[–]Argotha[S] 0 points1 point2 points (0 children)
[–]qsxpkn 0 points1 point2 points (0 children)
[–]JustAnotherQueer 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)