On Thu, May 21, 2015, at 10:06 PM, Eric Rahm wrote: > enum class LogLevel { > Disabled = 0, // Logging is disabled for this module > Error, > Warning, > Info, > Debug, > }; >
Just for comparison with other popular logging libraries: http://logging.apache.org/log4j/2.x/manual/customloglevels.html log4j has OFF, FATAL, ERROR, WARN, INFO, DEBUG, TRACE, ALL in order from 0 to MAX_INT. https://docs.python.org/2/library/logging.html#logging-levels Python's logging module has CRITICAL, ERROR, WARNING, INFO, DEBUG, NOTSET in order from 50 to 0. https://google-glog.googlecode.com/svn/trunk/doc/glog.html Google Log has INFO, WARNING, ERROR, FATAL, in order from 0 to 3. Your proposal looks nice! -Ted _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform