38 lines
1.9 KiB
XML
38 lines
1.9 KiB
XML
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<!-- log4j2.xml - Example log4j configuration file
|
||
|
Place this file in the same directory as your server.jar, edit
|
||
|
to taste, and add -Dlog4j.configurationFile=log4j2.xml to your
|
||
|
server startup flags.
|
||
|
More log4j example configs can be found at
|
||
|
<http://logging.apache.org/log4j/2.x/manual/appenders.html>.
|
||
|
-->
|
||
|
|
||
|
<Configuration status="trace" shutdownHook="disable">
|
||
|
<Appenders>
|
||
|
|
||
|
<!-- DEFAULT APPENDERS -->
|
||
|
|
||
|
<!-- console logging - logs to stdout -->
|
||
|
<Console name="ConsoleAppender" target="SYSTEM_OUT" follow="true">
|
||
|
<ThresholdFilter level="ERROR" onMatch="DENY" onMismatch="ACCEPT"/>
|
||
|
<PatternLayout disableAnsi="false" pattern="%d{${LOG_DATEFORMAT_PATTERN:-yyyy-MM-dd HH:mm:ss.SSS}} %highlight{${LOG_LEVEL_PATTERN:-%5p}}{FATAL=red blink, ERROR=red, WARN=yellow bold, INFO=green, DEBUG=green bold, TRACE=blue} %style{%processId}{magenta} [%15.15t] %style{%-20.20c{1}}{cyan} : %m%n%ex"/>
|
||
|
</Console>
|
||
|
<!-- console logging - logs to stderr -->
|
||
|
<Console name="ConsoleAppenderErr" target="SYSTEM_ERR" follow="true">
|
||
|
<ThresholdFilter level="ERROR" onMatch="ACCEPT" onMismatch="DENY"/>
|
||
|
<PatternLayout disableAnsi="false" pattern="%d{${LOG_DATEFORMAT_PATTERN:-yyyy-MM-dd HH:mm:ss.SSS}} %highlight{${LOG_LEVEL_PATTERN:-%5p}}{FATAL=red blink, ERROR=red, WARN=yellow bold, INFO=green, DEBUG=green bold, TRACE=blue} %style{%processId}{magenta} [%15.15t] %style{%-20.20c{1}}{cyan} : %m%n%ex"/>
|
||
|
</Console>
|
||
|
|
||
|
</Appenders>
|
||
|
<Loggers>
|
||
|
<Logger name="com.hazelcast" level="INFO" />
|
||
|
<Root level="DEBUG">
|
||
|
<filters>
|
||
|
<MarkerFilter marker="NETWORK_PACKETS" onMatch="DENY"
|
||
|
onMismatch="NEUTRAL" />
|
||
|
</filters>
|
||
|
<AppenderRef ref="ConsoleAppender"/>
|
||
|
<AppenderRef ref="ConsoleAppenderErr"/>
|
||
|
</Root>
|
||
|
</Loggers>
|
||
|
</Configuration>
|