[slf4j-dev] [Bug 38] JUL bridge/router

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Fri May 30 13:08:14 CEST 2008


http://bugzilla.slf4j.org/show_bug.cgi?id=38





------- Comment #7 from johan.ferner at lm.se  2008-05-30 13:08 -------
Hello,
Nice to see this issue getting some attention :)

I just implemented Joerns class in a project and I must say that the MDC part
is very helpful. Otherwise everything is logged by the bridge and the context
is removed from the log.

I even added a JUL-AllInfo MDC to simplify the need to have additional info if
logged via the bridge.

My log4j pattern looks like this:
<param name="ConversionPattern" value="%d{ISO8601} [%t] %-5p %m at
%X{JUL-AllInfo} %C.%M(%F:%L) %n" />

This will produce something like:
2008-05-30 12:54:47,804 [ajp-192.168.251.98-8009-9] DEBUG  FR status = 0. FR
Dat
acount = 4 at
[FINE:se.lantmateriet.frwebb.web.FastighetSokHttpWorkflow.executeI
nformationQuery()]
se.lantmateriet.log.jul.handler.Slf4JHandler.logDebug(Slf4JHa
ndler.java:148)

This will give me a nice migration path to pure slf4j logging.


-- 
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the slf4j-dev mailing list