On 5/22/15 4:50 AM, Ted Mielczarek wrote:
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.
Similarly, Android's logging API uses:
ASSERT > ERROR > WARN > INFO > DEBUG > VERBOSE
VERBOSE is for the "DEBUG + 1" case people are asking for. ASSERT is for
assertions and Log.wtf() messages aka "What a Terrible Failure". :)
https://developer.android.com/reference/android/util/Log.html
chris
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform