summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-webapp/src/main/resources/log4j.xml
blob: cc0aa6a40fd78a95d83f1c09dae2444b741ae610 (plain)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">

  <appender name="rolling" class="org.apache.log4j.DailyRollingFileAppender">
    <param name="file" value="${appserver.base}/logs/archiva.log" />
    <param name="append" value="true" />
    <param name="datePattern" value="'.'yyyy-MM-dd" />
    <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%d [%t] %-5p %c %x - %m%n"/>
    </layout>
  </appender>
  
  <appender name="auditlog" class="org.apache.log4j.DailyRollingFileAppender">
    <param name="file" value="${appserver.base}/logs/archiva-audit.log" />
    <param name="append" value="true" />
    <param name="datePattern" value="'.'yyyy-MM-dd" />
    <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} %m%n"/>
    </layout>
  </appender>

  <appender name="redbackAuditLog" class="org.apache.log4j.DailyRollingFileAppender">
    <param name="file" value="${appserver.base}/logs/archiva-security-audit.log" />
    <param name="append" value="true" />
    <param name="datePattern" value="'.'yyyy-MM-dd" />
    <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} - %X{redback.currentUser} - %m%n"/>
    </layout>
  </appender>

  <logger name="org.codehaus.plexus.redback.struts2.action.AuditEvent" additivity="false">
    <level value="info" />
    <appender-ref ref="redbackAuditLog" />
  </logger>

  <logger name="org.apache.archiva.AuditLog" additivity="false">
    <level value="info" />
    <appender-ref ref="auditlog" />
  </logger>
  
<!-- INFO level loggers can use the default
 <logger name="org.apache.archiva.consumers">
    <level value="info"/>
  </logger>
  
  <logger name="org.apache.archiva">
    <level value="info"/>
  </logger>
  
  <logger name="org.apache.maven.archiva">
    <level value="info"/>
  </logger>
  
  <logger name="org.codehaus.redback">
    <level value="info"/>
  </logger>

  <logger name="org.codehaus.plexus.redback">
    <level value="info"/>
  </logger>

  <logger name="org.codehaus.plexus.mailsender.MailSender">
    <level value="info"/>
  </logger>

  <logger name="org.quartz">
    <level value="info"/>
  </logger>

  <logger name="org.apache.jasper">
    <level value="info"/>
  </logger>

  <logger name="com.opensymphony.xwork2">
    <level value="info"/>
  </logger>

  <logger name="org.apache.struts2">
    <level value="info"/>
  </logger>

  <logger name="org.codehaus.plexus.PlexusContainer">
    <level value="info"/>
  </logger>
-->

  <!-- squelch noisy objects (for now) -->
  <logger name="org.apache.commons">
    <level value="warn"/>
  </logger>

  <logger name="net.sf.ehcache">
    <level value="warn"/>
  </logger>

  <logger name="org.codehaus.plexus.velocity">
    <level value="error"/>
  </logger>

  <logger name="JPOX">
    <level value="warn"/>
  </logger>

  <logger name="JPOX.MetaData">
    <level value="error"/>
  </logger>

  <logger name="JPOX.RDBMS.SQL">
    <level value="error"/>
  </logger>

  <logger name="SQL">
    <level value="error"/>
  </logger>

  <logger name="freemarker">
    <level value="warn"/>
  </logger>

  <logger name="org.codehaus.plexus.component.manager.ClassicSingletonComponentManager">
    <level value="error"/>
  </logger>

  <root>
    <priority value ="info" />
    <appender-ref ref="rolling" />
  </root>

</log4j:configuration>