meetings / gearsloth

Gearman job persistence and delayed execution system
MIT License
2 stars 0 forks source link

Log levels need unifying #54

Open kenkku opened 10 years ago

kenkku commented 10 years ago

Log levels should be unified according to http://tools.ietf.org/html/rfc5424. We currently only log debug, info and error, it might be a good idea to move some of the messages to notice. Related to #50

jarnoharno commented 10 years ago

Currently we are doing the following: conf.verbose: 0 (default) -> err to stderr and notice to stdout conf.verbose: 1 (-v) -> as above + info to stdout conf.verbose: 2 (-vv) -> as above + debug to stdout

Maybe we could adopt the standard log levels and set conf.verbose = 5 by default? Each -v command line parameter would then increase the log level by one (which would effectively result in exactly the same behavior + enable setting lower log levels with JSON configuration).