blob: e68057f87a7459f0fa8c4159b487b6e9d802f552 [file] [log] [blame]
Itay Hasside2da86d2017-08-24 12:54:42 +00001################################################################################
2#
Taka Cho4ee42262018-11-07 09:05:38 -05003# ============LICENSE_START=======================================================
4# ONAP : APPC
5# ================================================================================
6# Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
7# ================================================================================
8# Licensed under the Apache License, Version 2.0 (the "License");
9# you may not use this file except in compliance with the License.
10# You may obtain a copy of the License at
Itay Hasside2da86d2017-08-24 12:54:42 +000011#
12# http://www.apache.org/licenses/LICENSE-2.0
13#
Taka Cho4ee42262018-11-07 09:05:38 -050014# Unless required by applicable law or agreed to in writing, software
15# distributed under the License is distributed on an "AS IS" BASIS,
16# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17# See the License for the specific language governing permissions and
18# limitations under the License.
19# ============LICENSE_END=========================================================
Itay Hasside2da86d2017-08-24 12:54:42 +000020#
21################################################################################
22
Aaron Hay286a9f22018-10-08 17:54:36 -040023# Common pattern layout for appenders
24log4j2.pattern = %d{ISO8601} | %-5p | %-16t | %-32c{1} | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n
25
Itay Hasside2da86d2017-08-24 12:54:42 +000026# Root logger
Aaron Hay286a9f22018-10-08 17:54:36 -040027log4j2.rootLogger.level = INFO
28# uncomment to use asynchronous loggers, which require mvn:com.lmax/disruptor/3.3.2 library
29#log4j2.rootLogger.type = asyncRoot
30#log4j2.rootLogger.includeLocation = false
31log4j2.rootLogger.appenderRef.RollingFile.ref = RollingFile
32log4j2.rootLogger.appenderRef.PaxOsgi.ref = PaxOsgi
33log4j2.rootLogger.appenderRef.Console.ref = Console
34log4j2.rootLogger.appenderRef.Console.filter.threshold.type = ThresholdFilter
35log4j2.rootLogger.appenderRef.Console.filter.threshold.level = ${karaf.log.console:-OFF}
Itay Hasside2da86d2017-08-24 12:54:42 +000036
Aaron Hay286a9f22018-10-08 17:54:36 -040037# Loggers configuration
Itay Hasside2da86d2017-08-24 12:54:42 +000038
Aaron Hay286a9f22018-10-08 17:54:36 -040039# Spifly logger
40log4j2.logger.spifly.name = org.apache.aries.spifly
41log4j2.logger.spifly.level = WARN
Itay Hasside2da86d2017-08-24 12:54:42 +000042
Aaron Hay286a9f22018-10-08 17:54:36 -040043# Security audit logger
44log4j2.logger.audit.name = org.apache.karaf.jaas.modules.audit
45log4j2.logger.audit.level = INFO
46log4j2.logger.audit.additivity = false
47log4j2.logger.audit.appenderRef.AuditRollingFile.ref = AuditRollingFile
Itay Hasside2da86d2017-08-24 12:54:42 +000048
Aaron Hay286a9f22018-10-08 17:54:36 -040049# Appenders configuration
Itay Hasside2da86d2017-08-24 12:54:42 +000050
Aaron Hay286a9f22018-10-08 17:54:36 -040051# Console appender not used by default (see log4j2.rootLogger.appenderRefs)
52log4j2.appender.console.type = Console
53log4j2.appender.console.name = Console
54log4j2.appender.console.layout.type = PatternLayout
55log4j2.appender.console.layout.pattern = ${log4j2.pattern}
Itay Hasside2da86d2017-08-24 12:54:42 +000056
Aaron Hay286a9f22018-10-08 17:54:36 -040057# Rolling file appender
58log4j2.appender.rolling.type = RollingRandomAccessFile
59log4j2.appender.rolling.name = RollingFile
60log4j2.appender.rolling.fileName = ${karaf.data}/log/karaf.log
61log4j2.appender.rolling.filePattern = ${karaf.data}/log/karaf.log.%i
62# uncomment to not force a disk flush
63#log4j2.appender.rolling.immediateFlush = false
64log4j2.appender.rolling.append = true
65log4j2.appender.rolling.layout.type = PatternLayout
66log4j2.appender.rolling.layout.pattern = ${log4j2.pattern}
67log4j2.appender.rolling.policies.type = Policies
68log4j2.appender.rolling.policies.size.type = SizeBasedTriggeringPolicy
69log4j2.appender.rolling.policies.size.size = 16MB
Itay Hasside2da86d2017-08-24 12:54:42 +000070
Aaron Hay286a9f22018-10-08 17:54:36 -040071# Audit file appender
72log4j2.appender.audit.type = RollingRandomAccessFile
73log4j2.appender.audit.name = AuditRollingFile
74log4j2.appender.audit.fileName = ${karaf.data}/security/audit.log
75log4j2.appender.audit.filePattern = ${karaf.data}/security/audit.log.%i
76log4j2.appender.audit.append = true
77log4j2.appender.audit.layout.type = PatternLayout
78log4j2.appender.audit.layout.pattern = ${log4j2.pattern}
79log4j2.appender.audit.policies.type = Policies
80log4j2.appender.audit.policies.size.type = SizeBasedTriggeringPolicy
81log4j2.appender.audit.policies.size.size = 8MB
Itay Hasside2da86d2017-08-24 12:54:42 +000082
Aaron Hay286a9f22018-10-08 17:54:36 -040083# OSGi appender
84log4j2.appender.osgi.type = PaxOsgi
85log4j2.appender.osgi.name = PaxOsgi
86log4j2.appender.osgi.filter = *
Itay Hasside2da86d2017-08-24 12:54:42 +000087
Aaron Hay286a9f22018-10-08 17:54:36 -040088# help with identification of maven-related problems with pax-url-aether
89#log4j2.logger.aether.name = shaded.org.eclipse.aether
90#log4j2.logger.aether.level = TRACE
91#log4j2.logger.http-headers.name = shaded.org.apache.http.headers
92#log4j2.logger.http-headers.level = DEBUG
93#log4j2.logger.maven.name = org.ops4j.pax.url.mvn
94#log4j2.logger.maven.level = TRACE
Itay Hasside2da86d2017-08-24 12:54:42 +000095