On 2015-05-22 7: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://msdn.microsoft.com/en-us/library/system.diagnostics.eventing.reader.standardeventlevel.aspx
http://tools.ietf.org/html/rfc5424
You've got a working subset of both the Windows event-level spec and the
Syslog RFC there too, so if anyone wants to try digging into that output
with existing tools they should have a straightforward time of it.
- mhoye
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform