Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <Configuration status="WARN" monitorInterval="300">
- <Properties>
- <Property name="LOG_HOME">/home/pi/tmp</Property>
- <Property name="FILE_NAME">mylog</Property>
- </Properties>
- <Appenders>
- <RollingRandomAccessFile name="MyFile" fileName="${LOG_HOME}/${FILE_NAME}.log" filePattern="${LOG_HOME}/$${date:yyyy-MM}/${FILE_NAME}-%d{yyyy-MM-dd HH-mm}-%i.log">
- <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n" />
- <Policies>
- <TimeBasedTriggeringPolicy interval="1" />
- <SizeBasedTriggeringPolicy size="10 MB" />
- </Policies>
- <DefaultRolloverStrategy max="20" />
- </RollingRandomAccessFile>
- </Appenders>
- <Loggers>
- <!--<Logger name="Filter" level="trace" additivity="false">
- <AppenderRef ref="LOCALHOST" />
- </Logger>
- <Logger name="Login" level="info" additivity="false">
- <AppenderRef ref="LOCALHOST" />
- </Logger>
- <Logger name="Logout" level="info" additivity="false">
- <AppenderRef ref="LOCALHOST" />
- </Logger>-->
- <Logger name="SignUp" level="WARN" additivity="false">
- <AppenderRef ref="MyFile" />
- </Logger>
- <Root level="error">
- <AppenderRef ref="MyFile" />
- </Root>
- </Loggers>
- </Configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement