[slf4j-user] Using Marker

Ceki Gülcü listid at qos.ch
Mon Feb 12 21:04:09 CET 2007


Hi Sone,

You need an SLF4J binding which supports markers. Currently, the only 
binding that support markers is logback.

Cheers,

At 02:20 AM 2/11/2007, Sonu Gopal Sachdeva wrote:
>Hi,
>
>Is there some documentation available on how to use Markers in Slf4j.
>
>I am trying to run a test program with markers, to see how the log 
>statements are "enriched".
>
>
>public TestMarker() {
>
>Logger logger = LoggerFactory.getLogger(getClass());
>
>Marker marker = MarkerFactory.getMarker("Marker1");
>
>logger.debug(marker, "entry");
>
>}
>
>But what gets logged is for the following conversion parameter 
>[%C:%M:%L][Level:%p]%m%n
>
>[org.slf4j.impl.MarkerIgnoringBase:debug:55][Level:DEBUG]entry
>
>
>
>thanks,
>
>Sonu.
>_______________________________________________
>user mailing list
>user at slf4j.org
>http://www.slf4j.org/mailman/listinfo/user

-- 
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch




More information about the slf4j-user mailing list