Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 1 | ################################################################################ |
| 2 | # |
Taka Cho | 4ee4226 | 2018-11-07 09:05:38 -0500 | [diff] [blame] | 3 | # ============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 Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 11 | # |
| 12 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | # |
Taka Cho | 4ee4226 | 2018-11-07 09:05:38 -0500 | [diff] [blame] | 14 | # 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 Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 20 | # |
| 21 | ################################################################################ |
| 22 | |
Aaron Hay | 286a9f2 | 2018-10-08 17:54:36 -0400 | [diff] [blame] | 23 | # Common pattern layout for appenders |
| 24 | log4j2.pattern = %d{ISO8601} | %-5p | %-16t | %-32c{1} | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n |
| 25 | |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 26 | # Root logger |
Aaron Hay | 286a9f2 | 2018-10-08 17:54:36 -0400 | [diff] [blame] | 27 | log4j2.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 |
| 31 | log4j2.rootLogger.appenderRef.RollingFile.ref = RollingFile |
| 32 | log4j2.rootLogger.appenderRef.PaxOsgi.ref = PaxOsgi |
| 33 | log4j2.rootLogger.appenderRef.Console.ref = Console |
| 34 | log4j2.rootLogger.appenderRef.Console.filter.threshold.type = ThresholdFilter |
| 35 | log4j2.rootLogger.appenderRef.Console.filter.threshold.level = ${karaf.log.console:-OFF} |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 36 | |
Aaron Hay | 286a9f2 | 2018-10-08 17:54:36 -0400 | [diff] [blame] | 37 | # Loggers configuration |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 38 | |
Aaron Hay | 286a9f2 | 2018-10-08 17:54:36 -0400 | [diff] [blame] | 39 | # Spifly logger |
| 40 | log4j2.logger.spifly.name = org.apache.aries.spifly |
| 41 | log4j2.logger.spifly.level = WARN |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 42 | |
Aaron Hay | 286a9f2 | 2018-10-08 17:54:36 -0400 | [diff] [blame] | 43 | # Security audit logger |
| 44 | log4j2.logger.audit.name = org.apache.karaf.jaas.modules.audit |
| 45 | log4j2.logger.audit.level = INFO |
| 46 | log4j2.logger.audit.additivity = false |
| 47 | log4j2.logger.audit.appenderRef.AuditRollingFile.ref = AuditRollingFile |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 48 | |
Aaron Hay | 286a9f2 | 2018-10-08 17:54:36 -0400 | [diff] [blame] | 49 | # Appenders configuration |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 50 | |
Aaron Hay | 286a9f2 | 2018-10-08 17:54:36 -0400 | [diff] [blame] | 51 | # Console appender not used by default (see log4j2.rootLogger.appenderRefs) |
| 52 | log4j2.appender.console.type = Console |
| 53 | log4j2.appender.console.name = Console |
| 54 | log4j2.appender.console.layout.type = PatternLayout |
| 55 | log4j2.appender.console.layout.pattern = ${log4j2.pattern} |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 56 | |
Aaron Hay | 286a9f2 | 2018-10-08 17:54:36 -0400 | [diff] [blame] | 57 | # Rolling file appender |
| 58 | log4j2.appender.rolling.type = RollingRandomAccessFile |
| 59 | log4j2.appender.rolling.name = RollingFile |
| 60 | log4j2.appender.rolling.fileName = ${karaf.data}/log/karaf.log |
| 61 | log4j2.appender.rolling.filePattern = ${karaf.data}/log/karaf.log.%i |
| 62 | # uncomment to not force a disk flush |
| 63 | #log4j2.appender.rolling.immediateFlush = false |
| 64 | log4j2.appender.rolling.append = true |
| 65 | log4j2.appender.rolling.layout.type = PatternLayout |
| 66 | log4j2.appender.rolling.layout.pattern = ${log4j2.pattern} |
| 67 | log4j2.appender.rolling.policies.type = Policies |
| 68 | log4j2.appender.rolling.policies.size.type = SizeBasedTriggeringPolicy |
| 69 | log4j2.appender.rolling.policies.size.size = 16MB |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 70 | |
Aaron Hay | 286a9f2 | 2018-10-08 17:54:36 -0400 | [diff] [blame] | 71 | # Audit file appender |
| 72 | log4j2.appender.audit.type = RollingRandomAccessFile |
| 73 | log4j2.appender.audit.name = AuditRollingFile |
| 74 | log4j2.appender.audit.fileName = ${karaf.data}/security/audit.log |
| 75 | log4j2.appender.audit.filePattern = ${karaf.data}/security/audit.log.%i |
| 76 | log4j2.appender.audit.append = true |
| 77 | log4j2.appender.audit.layout.type = PatternLayout |
| 78 | log4j2.appender.audit.layout.pattern = ${log4j2.pattern} |
| 79 | log4j2.appender.audit.policies.type = Policies |
| 80 | log4j2.appender.audit.policies.size.type = SizeBasedTriggeringPolicy |
| 81 | log4j2.appender.audit.policies.size.size = 8MB |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 82 | |
Aaron Hay | 286a9f2 | 2018-10-08 17:54:36 -0400 | [diff] [blame] | 83 | # OSGi appender |
| 84 | log4j2.appender.osgi.type = PaxOsgi |
| 85 | log4j2.appender.osgi.name = PaxOsgi |
| 86 | log4j2.appender.osgi.filter = * |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 87 | |
Aaron Hay | 286a9f2 | 2018-10-08 17:54:36 -0400 | [diff] [blame] | 88 | # 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 Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 95 | |