mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
Merge branch 'feature/loggly-support' into feature/sprint-7-integration
This commit is contained in:
@ -1,29 +1,29 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<Configuration>
|
<Configuration>
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="LOG_PATTERN">%highlight{%d{ISO8601} | %-6r | %-5p | %markerSimpleName | %c{1} | %t{1} | %m%n}{FATAL=red, ERROR=red, WARN=blue, INFO=green, METRICS=magenta, DEBUG=cyan, TRACE=white}</Property>
|
<Property name="SystemOutPattern">%highlight{%date{ISO8601} | %relative | %level | %threadName{1} | %logger{1} | %message%n}</Property>
|
||||||
|
<Property name="FilePattern">%date{ISO8601} | %relative | %level | %threadName{1} | %logger{1} | %message%n</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
<CustomLevels>
|
|
||||||
<CustomLevel name="METRICS" intLevel="450"/>
|
|
||||||
</CustomLevels>
|
|
||||||
<Appenders>
|
<Appenders>
|
||||||
<File name="FullLogFile" fileName="log/full_log.log">
|
<File name="FullLogFile" fileName="log/full_log.log">
|
||||||
<LevelRangeFilter minLevel="ERROR" maxLevel="all" onMatch="ACCEPT" onMismatch="DENY"/>
|
<LevelRangeFilter minLevel="INFO" maxLevel="all" onMatch="ACCEPT" onMismatch="DENY"/>
|
||||||
<PatternLayout pattern="${LOG_PATTERN}"/>
|
<PatternLayout pattern="${FilePattern}"/>
|
||||||
</File>
|
</File>
|
||||||
<Console name="STDOUT" target="SYSTEM_OUT">
|
<Console name="SystemOut" target="SYSTEM_OUT">
|
||||||
<LevelRangeFilter minLevel="ERROR" maxLevel="METRICS" onMatch="ACCEPT" onMismatch="DENY"/>
|
<LevelRangeFilter minLevel="INFO" maxLevel="all" onMatch="ACCEPT" onMismatch="DENY"/>
|
||||||
<PatternLayout pattern="${LOG_PATTERN}"/>
|
<PatternLayout pattern="${SystemOutPattern}"/>
|
||||||
</Console>
|
</Console>
|
||||||
|
<Syslog name="Syslog" format="RFC5424" host="localhost" port="514" protocol="UDP" appName="qqq" facility="LOCAL0">
|
||||||
|
<LevelRangeFilter minLevel="INFO" maxLevel="all" onMatch="ACCEPT" onMismatch="DENY"/>
|
||||||
|
<PatternLayout pattern="${SystemOutPattern}"/>
|
||||||
|
</Syslog>
|
||||||
</Appenders>
|
</Appenders>
|
||||||
<Loggers>
|
<Loggers>
|
||||||
<Logger name="org.apache.log4j.xml" additivity="false">
|
<Logger name="org.apache.log4j.xml" additivity="false">
|
||||||
</Logger>
|
</Logger>
|
||||||
<Root level="all">
|
<Root level="all">
|
||||||
<AppenderRef ref="STDOUT"/>
|
<AppenderRef ref="SystemOut"/>
|
||||||
<!-- Uncomment only if you need the full_log.
|
<AppenderRef ref="Syslog"/>
|
||||||
<AppenderRef ref="FullLogFile" />
|
|
||||||
-->
|
|
||||||
</Root>
|
</Root>
|
||||||
</Loggers>
|
</Loggers>
|
||||||
</Configuration>
|
</Configuration>
|
||||||
|
Reference in New Issue
Block a user