<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
<Loghub name="loghubAppender1"
totalSizeInBytes="104857600"
maxBatchSizeBytes="524288"
timeFormat="yyyy-MM-dd'T'HH:mm:ssZ"
ignoreExceptions="true">
<Loghub name="loghubAppender2"
totalSizeInBytes="104857600"
maxBatchSizeBytes="524288"
timeFormat="yyyy-MM-dd'T'HH:mm:ssZ"
timeZone="Asia/Shanghai"
ignoreExceptions="true">
pattern="%d{HH:mm:ss.SSS} %-5level %class{36} %L %M - %msg%xEx"/>
<!-- Now deny warn, error and fatal messages -->
<ThresholdFilter level="warn" onMatch="DENY" onMismatch="NEUTRAL"/>
<ThresholdFilter level="error" onMatch="DENY" onMismatch="NEUTRAL"/>
<ThresholdFilter level="fatal" onMatch="DENY" onMismatch="NEUTRAL"/>
<!-- This filter accepts info, warn, error, fatal and denies debug/trace -->
<ThresholdFilter level="info" onMatch="ACCEPT" onMismatch="DENY"/>
<Console name="STDOUT" target="SYSTEM_OUT">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
<AppenderRef ref="loghubAppender1" level="WARN"/>
<AppenderRef ref="loghubAppender2"/>
<AppenderRef ref="STDOUT"/>