mirror of https://github.com/apache/archiva.git
put log directory in a property for log4j2 files
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1382601 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a27fd2e2e9
commit
9fd5b89f16
|
@ -21,10 +21,14 @@
|
|||
|
||||
<configuration>
|
||||
|
||||
<properties>
|
||||
<property name="logsDirectory">${sys:appserver.base}/logs</property>
|
||||
</properties>
|
||||
|
||||
<appenders>
|
||||
|
||||
<RollingFile name="rolling" fileName="${appserver.base}/logs/archiva.log"
|
||||
filePattern="${appserver.base}/logs/archiva-%d{MM-dd-yy-HH-mm}.log">
|
||||
<RollingFile name="rolling" fileName="${logsDirectory}/archiva.log"
|
||||
filePattern="${logsDirectory}/archiva-%d{MM-dd-yy-HH-mm}.log">
|
||||
<PatternLayout>
|
||||
<pattern>%d [%t] %-5p %c %x - %m%n</pattern>
|
||||
</PatternLayout>
|
||||
|
@ -33,8 +37,8 @@
|
|||
</Policies>
|
||||
</RollingFile>
|
||||
|
||||
<RollingFile name="auditlog" fileName="${appserver.base}/logs/archiva-audit.log"
|
||||
filePattern="${appserver.base}/logs/archiva-audit-%d{MM-dd-yy-HH-mm}.log">
|
||||
<RollingFile name="auditlog" fileName="${logsDirectory}/archiva-audit.log"
|
||||
filePattern="${logsDirectory}/logs/archiva-audit-%d{MM-dd-yy-HH-mm}.log">
|
||||
<PatternLayout>
|
||||
<pattern>%d{yyyy-MM-dd HH:mm:ss} %m%n</pattern>
|
||||
</PatternLayout>
|
||||
|
@ -43,8 +47,8 @@
|
|||
</Policies>
|
||||
</RollingFile>
|
||||
|
||||
<RollingFile name="redbackAuditLog" fileName="${appserver.base}/logs/archiva-security-audit.log"
|
||||
filePattern="${appserver.base}/logs/archiva-security-audit.log-%d{MM-dd-yy-HH-mm}.log">
|
||||
<RollingFile name="redbackAuditLog" fileName="${logsDirectory}/archiva-security-audit.log"
|
||||
filePattern="${logsDirectory}/archiva-security-audit.log-%d{MM-dd-yy-HH-mm}.log">
|
||||
<PatternLayout>
|
||||
<pattern>%d{yyyy-MM-dd HH:mm:ss} - %X{redback.currentUser} - %m%n</pattern>
|
||||
</PatternLayout>
|
||||
|
|
|
@ -21,10 +21,14 @@
|
|||
|
||||
<configuration>
|
||||
|
||||
<properties>
|
||||
<property name="logsDirectory">${sys:appserver.base}/logs</property>
|
||||
</properties>
|
||||
|
||||
<appenders>
|
||||
|
||||
<RollingFile name="rolling" fileName="${appserver.base}/logs/archiva.log"
|
||||
filePattern="${appserver.base}/logs/archiva-%d{MM-dd-yy-HH-mm}.log">
|
||||
<RollingFile name="rolling" fileName="${logsDirectory}/archiva.log"
|
||||
filePattern="${logsDirectory}/archiva-%d{MM-dd-yy-HH-mm}.log">
|
||||
<PatternLayout>
|
||||
<pattern>%d [%t] %-5p %c %x - %m%n</pattern>
|
||||
</PatternLayout>
|
||||
|
@ -33,8 +37,8 @@
|
|||
</Policies>
|
||||
</RollingFile>
|
||||
|
||||
<RollingFile name="auditlog" fileName="${appserver.base}/logs/archiva-audit.log"
|
||||
filePattern="${appserver.base}/logs/archiva-audit-%d{MM-dd-yy-HH-mm}.log">
|
||||
<RollingFile name="auditlog" fileName="${logsDirectory}/archiva-audit.log"
|
||||
filePattern="${logsDirectory}/logs/archiva-audit-%d{MM-dd-yy-HH-mm}.log">
|
||||
<PatternLayout>
|
||||
<pattern>%d{yyyy-MM-dd HH:mm:ss} %m%n</pattern>
|
||||
</PatternLayout>
|
||||
|
@ -43,8 +47,8 @@
|
|||
</Policies>
|
||||
</RollingFile>
|
||||
|
||||
<RollingFile name="redbackAuditLog" fileName="${appserver.base}/logs/archiva-security-audit.log"
|
||||
filePattern="${appserver.base}/logs/archiva-security-audit.log-%d{MM-dd-yy-HH-mm}.log">
|
||||
<RollingFile name="redbackAuditLog" fileName="${logsDirectory}/archiva-security-audit.log"
|
||||
filePattern="${logsDirectory}/archiva-security-audit.log-%d{MM-dd-yy-HH-mm}.log">
|
||||
<PatternLayout>
|
||||
<pattern>%d{yyyy-MM-dd HH:mm:ss} - %X{redback.currentUser} - %m%n</pattern>
|
||||
</PatternLayout>
|
||||
|
|
Loading…
Reference in New Issue