logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bilguun Ariunbold <ariunboldbilig...@gmail.com>
Subject How to create the custom marker in log4j2/slf4j?
Date Tue, 15 Mar 2016 19:12:57 GMT
down votefavorite

I am trying to create custom marker using slf4j and log4j2. Below is how I
created the marker and used it:

Marker marker =
"service called");

And below is my log4j2-test.xml:

<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="DEBUG">
        <Property name="layout">%d | %-5p | [%t] | %c{2} | %M | %m%n</Property>
        <File name="WebServices"
            <MarkerFilter marker="WebService" onMatch="ACCEPT"
onMismatch="DENY" />
        <Root level="TRACE">
            <AppenderRef ref="WebServices" level="INFO" />

It created the file but does not write anything to it. Did I miss
something? thank you

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message