diff options
author | Olivier Lamy <olamy@apache.org> | 2013-04-26 14:24:56 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2013-04-26 14:24:56 +0000 |
commit | 5c20f967095e6a0fc85dfddf02985deba136c922 (patch) | |
tree | 37a4a0a307e901d7dd25960e9d8b5d23ca14dc98 | |
parent | 9cd017700a86d3e42ff72a0706afb7fd89fdceb5 (diff) | |
download | archiva-5c20f967095e6a0fc85dfddf02985deba136c922.tar.gz archiva-5c20f967095e6a0fc85dfddf02985deba136c922.zip |
use asyncLogger and FastRollingFile from log4j2
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1476216 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | archiva-modules/archiva-web/archiva-webapp/src/main/resources/log4j2.xml | 78 |
1 files changed, 36 insertions, 42 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 c36bbc4e1..4738bd362 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,111 +27,105 @@ <appenders> - <RollingFile name="rolling" fileName="${logsDirectory}/archiva.log" - filePattern="${logsDirectory}/archiva-%d{MM-dd-yyyy}.log"> + <FastRollingFile 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> </PatternLayout> <Policies> <TimeBasedTriggeringPolicy /> </Policies> - </RollingFile> + </FastRollingFile> - <RollingFile name="auditlog" fileName="${logsDirectory}/archiva-audit.log" - filePattern="${logsDirectory}/logs/archiva-audit-%d{MM-dd-yyyy}.log"> + <FastRollingFile name="auditlog" fileName="${logsDirectory}/archiva-audit.log" + filePattern="${logsDirectory}/logs/archiva-audit-%d{MM-dd-yyyy}.log" + immediateFlush="false" append="true"> <PatternLayout> <pattern>%d{yyyy-MM-dd HH:mm:ss} %m%n</pattern> </PatternLayout> <Policies> <TimeBasedTriggeringPolicy /> </Policies> - </RollingFile> + </FastRollingFile> - <RollingFile name="redbackAuditLog" fileName="${logsDirectory}/archiva-security-audit.log" - filePattern="${logsDirectory}/archiva-security-audit.log-%d{MM-dd-yyyy}.log"> + <FastRollingFile name="redbackAuditLog" fileName="${logsDirectory}/archiva-security-audit.log" + filePattern="${logsDirectory}/archiva-security-audit.log-%d{MM-dd-yyyy}.log" + immediateFlush="false" append="true"> <PatternLayout> <pattern>%d{yyyy-MM-dd HH:mm:ss} - %X{redback.currentUser} - %m%n</pattern> </PatternLayout> <Policies> <TimeBasedTriggeringPolicy /> </Policies> - </RollingFile> + </FastRollingFile> </appenders> <loggers> - <logger name="org.apache.archiva.redback.struts2.action.AuditEvent" additivity="false" level="info"> + <asyncLogger name="org.apache.archiva.redback.struts2.action.AuditEvent" additivity="false" level="info"> <appender-ref ref="redbackAuditLog" /> - </logger> + </asyncLogger> - <logger name="org.apache.archiva.AuditLog" additivity="false" level="info"> + <asyncLogger name="org.apache.archiva.AuditLog" additivity="false" level="info"> <appender-ref ref="auditlog" /> - </logger> + </asyncLogger> <!-- INFO level loggers can use the default - <logger name="org.apache.archiva.consumers" level="info"/> + <asyncLogger name="org.apache.archiva.consumers" level="info"/> - <logger name="org.apache.archiva" level="info"/> + <asyncLogger name="org.apache.archiva" level="info"/> + <asyncLogger name="org.quartz" level="info"/> - <logger name="org.quartz" level="info"/> + <asyncLogger name="org.apache.jasper" level="info"/> - <logger name="org.apache.jasper" level="info"/> + <asyncLogger name="com.opensymphony.xwork2" level="info"/> - <logger name="com.opensymphony.xwork2" level="info"/> - - <logger name="org.apache.struts2" level="info"/> + <asyncLogger name="org.apache.struts2" level="info"/> --> <!-- WebDav objects --> - <logger name="org.apache.archiva.webdav.ArchivaDavResource" level="info"/> - - - <logger name="org.apache.archiva.webdav.ArchivaDavResourceFactory" level="info"/> + <asyncLogger name="org.apache.archiva.webdav.ArchivaDavResource" level="info"/> + <asyncLogger name="org.apache.archiva.webdav.ArchivaDavResourceFactory" level="info"/> <!-- squelch noisy objects (for now) --> - <logger name="org.apache.commons" level="warn"/> - - <logger name="net.sf.ehcache" level="warn"/> + <asyncLogger name="org.apache.commons" level="warn"/> + <asyncLogger name="net.sf.ehcache" level="warn"/> <!-- retained for Redback --> - <logger name="JPOX" level="warn"/> - - - <logger name="JPOX.MetaData" level="error"/> - - - <logger name="JPOX.RDBMS.SQL" level="error"/> - + <asyncLogger name="JPOX" level="warn"/> - <logger name="SQL" level="error"/> + <asyncLogger name="JPOX.MetaData" level="error"/> + <asyncLogger name="JPOX.RDBMS.SQL" level="error"/> + <asyncLogger name="SQL" level="error"/> - <logger name="org.apache.commons.configuration.DefaultConfigurationBuilder" level="error"/> + <asyncLogger name="org.apache.commons.configuration.DefaultConfigurationBuilder" level="error"/> <!-- debug wagon transfer --> <!-- - <logger name="org.apache.archiva.proxy.common" level="debug"/> + <asyncLogger name="org.apache.archiva.proxy.common" level="debug"/> --> <!-- apache httpclient debug content transfer verbose --> <!-- - <logger name="org.apache.http.wire" level="debug"/> + <asyncLogger name="org.apache.http.wire" level="debug"/> --> <!-- apache httpclient log headers --> <!-- - <logger name="org.apache.http.headers" level="debug"/> + <asyncLogger name="org.apache.http.headers" level="debug"/> --> - <root level="info"> + <asyncRoot level="info" includeLocation="true"> <appender-ref ref="rolling"/> - </root> + </asyncRoot> </loggers> </configuration> |