summaryrefslogtreecommitdiffstats
path: root/odlsli/src/main/resources/org.ops4j.pax.logging.cfg
blob: 7a575e4a37f08a696c1fce4eb1a57aa4b9117eac (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
# Root logger
log4j.rootLogger=INFO, async, directed-graph-node-id, directed-graph, osgi:*
log4j.throwableRenderer=org.apache.log4j.OsgiThrowableRenderer

# CONSOLE appender not used by default
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ISO8601} | %-5.5p | %-16.16t | %-32.32c{1} | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n

# Async appender forwarding to file appender
log4j.appender.async=org.apache.log4j.AsyncAppender
log4j.appender.async.appenders=out

# File appender
log4j.appender.out=org.apache.log4j.RollingFileAppender
log4j.appender.out.layout=org.apache.log4j.PatternLayout
log4j.appender.out.layout.ConversionPattern=%d{ISO8601} | %-5.5p | %-16.16t | %-32.32c{1} | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n
log4j.appender.out.file=${karaf.data}/log/karaf.log
log4j.appender.out.append=true
log4j.appender.out.maxFileSize=1MB
log4j.appender.out.maxBackupIndex=10

# Directed Graph Node Id appender
log4j.appender.directed-graph-node-id=org.apache.log4j.sift.MDCSiftingAppender
log4j.appender.directed-graph-node-id.key=nodeId
log4j.appender.directed-graph-node-id.default=unknown
log4j.appender.directed-graph-node-id.appender=org.apache.log4j.FileAppender
log4j.appender.directed-graph-node-id.appender.layout=org.apache.log4j.PatternLayout
log4j.appender.directed-graph-node-id.appender.layout.ConversionPattern=%d{ISO8601} | %-5.5p | %X{nodeId} | %m%n
log4j.appender.directed-graph-node-id.appender.file=${karaf.data}/log/$\\{nodeId\\}.log
log4j.appender.directed-graph-node-id.appender.append=true

# Directed Graph Name appender
log4j.appender.directed-graph=org.apache.log4j.sift.MDCSiftingAppender
log4j.appender.directed-graph.key=currentGraph
log4j.appender.directed-graph.default=unknown
log4j.appender.directed-graph.appender=org.apache.log4j.FileAppender
log4j.appender.directed-graph.appender.layout=org.apache.log4j.PatternLayout
log4j.appender.directed-graph.appender.layout.ConversionPattern=%d{ISO8601} | %-5.5p | %X{currentGraph} | %m%n
log4j.appender.directed-graph.appender.file=${karaf.data}/log/$\\{currentGraph\\}.log
log4j.appender.directed-graph.appender.append=true

# Sift appender
log4j.appender.sift=org.apache.log4j.sift.MDCSiftingAppender
log4j.appender.sift.key=bundle.name
log4j.appender.sift.default=karaf
log4j.appender.sift.appender=org.apache.log4j.FileAppender
log4j.appender.sift.appender.layout=org.apache.log4j.PatternLayout
log4j.appender.sift.appender.layout.ConversionPattern=%d{ISO8601} | %-5.5p | %-16.16t | %-32.32c{1} | %m%n
log4j.appender.sift.appender.file=${karaf.data}/log/$\\{bundle.name\\}.log
log4j.appender.sift.appender.append=true

# syslog appender for exporting karaf messages to a syslog server
# To enable the syslog appender, add it to the log4j.rootLogger list above.
#
# Make sure to set log4j.appender.syslog.syslogHost in the format:
# <syslogHost>:<syslogPort>
# If no port is specified, the default, 514, is assumed.
log4j.appender.syslog=org.apache.log4j.net.SyslogAppender
log4j.appender.syslog.layout=org.apache.log4j.PatternLayout
log4j.appender.syslog.layout.ConversionPattern=%d{ISO8601} | %-5.5p | %-16.16t | %-32.32c{1} | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %X{currentGraph} | %X{nodeId} | %m%n
log4j.appender.syslog.syslogHost=127.0.0.1
log4J.appender.syslog.facility=KARAF
log4j.appender.syslog.facilityPrinting=false