Created
June 12, 2017 06:50
-
-
Save A-pZ/c87f8793562944349eba08b2ad217b7d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Configulation: | |
Properties: | |
Property: | |
name: "catalina.base" | |
value: "/var/log/tomcat/logs" | |
status: "info" | |
Appenders: | |
Console: | |
name: "Console" | |
target: "SYSTEM_OUT" | |
PatternLayout: | |
pattern: "%d{yyyy/MM/dd HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n" | |
RollingFile: | |
name: "ROLLING_LOGGER" | |
fileName: "${catalina.base}/logs/rollng_test.log" | |
append: true | |
filePattern: "_yyyyMMdd.log" | |
policies: | |
sizeBasedTriggeringPolicy: | |
size: "100 MB" | |
patternLayout: | |
pattern: "%d{yyyy-MM-dd HH:mm:ss}\t[%t]\t%m\n" | |
defaultRolloverStrategy: | |
max: 10 | |
RollingFile: | |
name: "CRITICAL_ERROR_LOGGER" | |
fileName: "${catalina.base}/logs/critical.log" | |
append: true | |
filePattern: "_yyyyMMdd.log" | |
policies: | |
cronTriggeringPolicy: | |
schedule: "0 0 0 * * ?" | |
patternLayout: | |
pattern: "%d{yyyy-MM-dd HH:mm:ss} [%-5p] (%F:%L) [%t] - %m%n" | |
defaultRolloverStrategy: | |
max: 365 | |
Loggers: | |
Root: | |
level: "info" | |
AppenderRef: | |
ref: "Console" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment