[lttng-dev] [RFC] Java JUL loglevel mapping to LTTng

David Goulet dgoulet at efficios.com
Fri Jan 24 12:32:45 EST 2014


Hi everyone!

Quick email to submit you all the mapping I did between Java JUL
loglevel[1] and LTTng[2]. This is for the support of loglevels in LTTng
JUL library.

Since Java loglevels don't make sense at all nor are following any
standard (like syslog), this is a best effort :P.

LOGLEVEL_EMERG:
LOGLEVEL_ALERT:
LOGLEVEL_CRIT:
LOGLEVEL_ERR:
	JUL Level --> SEVERE

LOGLEVEL_WARNING:
LOGLEVEL_NOTICE:
	JUL Level --> WARNING

LOGLEVEL_INFO:
	JUL Level --> INFO

LOGLEVEL_DEBUG_SYSTEM:
LOGLEVEL_DEBUG_PROGRAM:
LOGLEVEL_DEBUG_PROCESS:
LOGLEVEL_DEBUG_MODULE:
	JUL Level --> CONFIG

LOGLEVEL_DEBUG_UNIT:
	JUL Level --> FINE

LOGLEVEL_DEBUG_FUNCTION:
	JUL Level --> FINER

LOGLEVEL_DEBUG_LINE:
	JUL Level --> FINEST

LOGLEVEL_DEBUG:
default:
	JUL Level --> ALL

Any input on that is welcome!

Cheers!
David

[1] http://docs.oracle.com/javase/7/docs/api/java/util/logging/Level.html
[2] https://git.lttng.org/?p=lttng-tools.git;a=blob;f=include/lttng/lttng.h;h=85fdfaa257605f36ebbd7d99030e8f3ca32e97b9;hb=HEAD#l71
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 603 bytes
Desc: Digital signature
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20140124/50d919a0/attachment-0001.pgp>


More information about the lttng-dev mailing list