diff options
-rw-r--r-- | archiva-modules/archiva-web/archiva-webapp/src/main/resources/log4j2.xml | 12 | ||||
-rw-r--r-- | archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/log4j2-test.xml | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/resources/log4j2.xml b/archiva-modules/archiva-web/archiva-webapp/src/main/resources/log4j2.xml index 32e1ed8f0..a20e8d91e 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/resources/log4j2.xml +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/resources/log4j2.xml @@ -27,7 +27,7 @@ <appenders> - <FastRollingFile name="rolling" fileName="${logsDirectory}/archiva.log" + <RollingRandomAccessFile name="rolling" fileName="${logsDirectory}/archiva.log" filePattern="${logsDirectory}/archiva-%d{yyyyMMdd}.log" immediateFlush="false" append="true"> <PatternLayout> @@ -36,9 +36,9 @@ <Policies> <TimeBasedTriggeringPolicy /> </Policies> - </FastRollingFile> + </RollingRandomAccessFile> - <FastRollingFile name="auditlog" fileName="${logsDirectory}/archiva-audit.log" + <RollingRandomAccessFile name="auditlog" fileName="${logsDirectory}/archiva-audit.log" filePattern="${logsDirectory}/archiva-audit-%d{yyyyMMdd}.log" immediateFlush="false" append="true"> <PatternLayout> @@ -47,9 +47,9 @@ <Policies> <TimeBasedTriggeringPolicy /> </Policies> - </FastRollingFile> + </RollingRandomAccessFile> - <FastRollingFile name="redbackAuditLog" fileName="${logsDirectory}/archiva-security-audit.log" + <RollingRandomAccessFile name="redbackAuditLog" fileName="${logsDirectory}/archiva-security-audit.log" filePattern="${logsDirectory}/archiva-security-audit.log-%d{yyyyMMdd}.log" immediateFlush="false" append="true"> <PatternLayout> @@ -58,7 +58,7 @@ <Policies> <TimeBasedTriggeringPolicy /> </Policies> - </FastRollingFile> + </RollingRandomAccessFile> </appenders> <loggers> diff --git a/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/log4j2-test.xml b/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/log4j2-test.xml index 2ae02c996..8dcb4e1d5 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/log4j2-test.xml +++ b/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/log4j2-test.xml @@ -30,7 +30,7 @@ <!--PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/--> <PatternLayout pattern="%highlight{%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n}" /> </Console> - <FastRollingFile name="rolling" fileName="${logsDirectory}/archiva.log" + <RollingRandomAccessFile name="rolling" fileName="${logsDirectory}/archiva.log" filePattern="${logsDirectory}/archiva-%d{MM-dd-yyyy}.log" immediateFlush="false" append="true"> <PatternLayout> <pattern>%d [%t] %-5p %c %x - %m%n</pattern> @@ -38,7 +38,7 @@ <Policies> <TimeBasedTriggeringPolicy /> </Policies> - </FastRollingFile> + </RollingRandomAccessFile> </appenders> <loggers> |