Advertisement
vim_fans

Untitled

Sep 6th, 2021
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Configuration status="WARN" monitorInterval="300">
  3.  
  4. <Properties>
  5. <Property name="LOG_HOME">/home/pi/tmp</Property>
  6. <Property name="FILE_NAME">mylog</Property>
  7. </Properties>
  8.  
  9. <Appenders>
  10. <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">
  11. <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n" />
  12. <Policies>
  13. <TimeBasedTriggeringPolicy interval="1" />
  14. <SizeBasedTriggeringPolicy size="10 MB" />
  15. </Policies>
  16. <DefaultRolloverStrategy max="20" />
  17. </RollingRandomAccessFile>
  18.  
  19. </Appenders>
  20.  
  21. <Loggers>
  22.  
  23. <!--<Logger name="Filter" level="trace" additivity="false">
  24. <AppenderRef ref="LOCALHOST" />
  25. </Logger>
  26. <Logger name="Login" level="info" additivity="false">
  27. <AppenderRef ref="LOCALHOST" />
  28. </Logger>
  29. <Logger name="Logout" level="info" additivity="false">
  30. <AppenderRef ref="LOCALHOST" />
  31. </Logger>-->
  32. <Logger name="SignUp" level="WARN" additivity="false">
  33. <AppenderRef ref="MyFile" />
  34. </Logger>
  35. <Root level="error">
  36. <AppenderRef ref="MyFile" />
  37.  
  38. </Root>
  39.  
  40. </Loggers>
  41. </Configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement