[SPRING] log4j2.xml 설정
log4j2.xml 설정 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 <?xml version="1.0" encoding="UTF-8"?> <configuration status= "WARN" > <appenders> <Console name= "console" target= "SYSTEM_OUT" > <PatternLayout pattern= "%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n" /> </Console> <RollingFile name= "file" fileName= "./logs/all.log" filePattern= "./logs/all.%i.%d{yyyy-MM-dd}.log" > <PatternLayout pattern= "%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n" /> <Policies> <SizeBasedTriggeringPolicy size= "10MB" /> <!-- 이 용량이 초과되면 아래 DefaultRolloverStrategy 정책만큼 넘버링 할거다. --> </Policies> <DefaultRolloverStrategy max= "1000" fileIndex= "min"...
댓글
댓글 쓰기