Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: ce1fca910741365c2403ff831bb113deaef7dbe7 (plain) (blame)
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
<configuration>
	<root level="debug"/>

	<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
		<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
			<Pattern>[%d{yyyy-MM-dd HH:mm:ss.SSS}] %-24.24thread &lt;%X{medic.eventCode}&gt; %msg %ex%n</Pattern>
    	</encoder>
  	</appender>
  	    
  	<logger name="org.eclipse.virgo.medic.eventlog.localized">
    	<appender-ref ref="STDOUT" />
        <appender name="stubAppender" class="org.eclipse.virgo.medic.eventlog.impl.logback.LocalizedOutputAppender">
			<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
	    		<Pattern>[%d{yyyy-MM-dd HH:mm:ss.SSS}] %-24.24thread &lt;%X{medic.eventCode}&gt; %msg %ex</Pattern>
    		</encoder>
  		</appender>
  		<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
			<file>target/serviceability/eventlog/eventlog.log</file>
			<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
				<FileNamePattern>target/serviceability/eventlog/eventlog_%i.log</FileNamePattern>
				<MinIndex>1</MinIndex>
				<MaxIndex>4</MaxIndex>
			</rollingPolicy> 
			<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
			    <MaxFileSize>10MB</MaxFileSize>
			 </triggeringPolicy>
    		<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
      			<Pattern>[%d{yyyy-MM-dd HH:mm:ss.SSS}] %-24.24thread &lt;%X{medic.eventCode}&gt; %msg %ex%n</Pattern>
    		</encoder>
  		</appender>
  	</logger>
  	
  	<logger name="org.eclipse.virgo.medic.eventlog.default">    	
      	<appender name="stubAppender" class="org.eclipse.virgo.medic.eventlog.impl.logback.DefaultOutputAppender">
    		<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
      			<Pattern>[%d{yyyy-MM-dd HH:mm:ss.SSS}] %-24.24thread &lt;%X{medic.eventCode}&gt; %msg %ex</Pattern>
    		</encoder>
    	</appender>
  	</logger>
  	
  	<logger name="org.eclipse.virgo.medic.log.impl.LoggingPrintStreamWrapperTests">
  		<appender name="capturingAppender" class="org.eclipse.virgo.medic.log.impl.CapturingAppender">
    		<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
      			<Pattern>%msg</Pattern>
    		</encoder>
    	</appender>
    	<appender-ref ref="STDOUT"/>
  	</logger>
  	
</configuration>

Back to the top