HAR1F

Untitled

Sep 22nd, 2021 (edited)
86
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <Configuration status="debug">
  3.  
  4.     <!-- Don't forget to set system property
  5.     -Dlog4j2.contextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector
  6.     to make all loggers asynchronous. -->
  7.  
  8.     <Appenders>
  9.         <RollingFile name="MAIN" fileName="${sys:log.dir}/${sys:app.name}.log"
  10.                     filePattern="${sys:log.dir}/${sys:app.name}.log.%d{yyyy-MM-dd}.gz">
  11.             <PatternLayout pattern="[%d] %-5p [%t] %m%n"/>
  12.             <TimeBasedTriggeringPolicy interval="1"/>
  13.             <DefaultRolloverStrategy>
  14.                 <Delete basePath="${sys:log.dir}" maxDepth="1">
  15.                     <IfFileName glob="${sys:app.name}.log.*.gz"/>
  16.                     <IfLastModified age="14d"/>
  17.                 </Delete>
  18.             </DefaultRolloverStrategy>
  19.         </RollingFile>
  20.         <RollingFile name="TRACE" fileName="${sys:log.dir}/${sys:app.name}-trace.log"
  21.                     filePattern="${sys:log.dir}/${sys:app.name}-trace.log.%d{yyyy-MM-dd}.gz">
  22.             <PatternLayout pattern="%m%n"/>
  23.             <TimeBasedTriggeringPolicy interval="1"/>
  24.             <DefaultRolloverStrategy>
  25.                 <Delete basePath="${sys:log.dir}" maxDepth="1">
  26.                     <IfFileName glob="${sys:app.name}-trace.log.*.gz"/>
  27.                     <IfLastModified age="14d"/>
  28.                 </Delete>
  29.             </DefaultRolloverStrategy>
  30.         </RollingFile>
  31.         <RollingFile name="ERROR" fileName="${sys:log.dir}/${sys:app.name}-error.log"
  32.                     filePattern="${sys:log.dir}/${sys:app.name}-error.log.%d{yyyy-MM-dd}.gz">
  33.             <PatternLayout pattern="%m%n"/>
  34.             <TimeBasedTriggeringPolicy interval="1"/>
  35.             <DefaultRolloverStrategy>
  36.                 <Delete basePath="${sys:log.dir}" maxDepth="1">
  37.                     <IfFileName glob="${sys:app.name}-error.log.*.gz"/>
  38.                     <IfLastModified age="14d"/>
  39.                 </Delete>
  40.             </DefaultRolloverStrategy>
  41.         </RollingFile>
  42.     </Appenders>
  43.     <Loggers>
  44.         <Root level="info">
  45.             <AppenderRef ref="MAIN"/>
  46.             <AppenderRef ref="ERROR" level="ERROR"/>
  47.         </Root>
  48.         <Logger name="requestTrace" level="TRACE" additivity="false">
  49.             <AppenderRef ref="TRACE"/>
  50.         </Logger>
  51.     </Loggers>
  52. </Configuration>
RAW Paste Data