This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
org.ops4j.pax.logging.cfg.tmpl
88 lines (75 loc) · 3.67 KB
/
org.ops4j.pax.logging.cfg.tmpl
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
################################################################################
#
# Config file shipped by Apache Karaf under ASF license modified by Instana.
#
################################################################################
################################################################################
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
################################################################################
# Configuration of the Instana logger. Changes will be hot-reloaded.
log4j2.logger.instana.name = com.instana
log4j2.logger.instana.level = {{ getenv "INSTANA_LOG_LEVEL" }}
# Configuration of the Netty SSL logger. Changes will be hot-reloaded.
log4j2.logger.netty_ssl.name = io.netty.handler.ssl
log4j2.logger.netty_ssl.level = DEBUG
# Configuration of the Instana HTTP2 Trace Logger. Requires TRACE level to show logs. Changes will be hot-reloaded.
log4j2.logger.agent_http_framelogger.name = com.instana.backend.client.Http2FrameLogger
log4j2.logger.agent_http_framelogger.level = INFO
# Root logger - Only change on request by support.
log4j2.rootLogger.level = INFO
log4j2.rootLogger.appenderRef.RollingFile.ref = RollingFile
log4j2.rootLogger.appenderRef.PaxOsgi.ref = PaxOsgi
log4j2.rootLogger.appenderRef.Console.ref = Console
log4j2.rootLogger.appenderRef.Console.level = INFO
#log4j2.rootLogger.appenderRef.Syslog.ref = Syslog
#log4j2.rootLogger.appenderRef.Syslog.level = ERROR
# Common pattern layout for appenders
log4j2.pattern = %d{yyyy-MM-dd'T'HH:mm:ss.SSSZZZZ} | %-5.5p | %-32.32t | %-16.16c{1} | %X{bundle.name} - %X{bundle.version} | %m%n
# Appenders configuration
# Console appender not used by default
log4j2.appender.console.type = Console
log4j2.appender.console.name = Console
log4j2.appender.console.layout.type = PatternLayout
log4j2.appender.console.layout.pattern = ${log4j2.pattern}
# Rolling file appender
log4j2.appender.rolling.type = RollingFile
log4j2.appender.rolling.name = RollingFile
log4j2.appender.rolling.fileName = ${karaf.data}/log/agent.log
log4j2.appender.rolling.filePattern = ${karaf.data}/log/agent.log.%i
log4j2.appender.rolling.append = true
log4j2.appender.rolling.layout.type = PatternLayout
log4j2.appender.rolling.layout.pattern = ${log4j2.pattern}
log4j2.appender.rolling.policies.type = Policies
log4j2.appender.rolling.policies.size.type = SizeBasedTriggeringPolicy
log4j2.appender.rolling.policies.size.size = 512KB
log4j2.appender.rolling.strategy.type = DefaultRolloverStrategy
log4j2.appender.rolling.strategy.max = 5
# OSGi appender
log4j2.appender.osgi.type = PaxOsgi
log4j2.appender.osgi.name = PaxOsgi
log4j2.appender.osgi.filter = *
# Syslog appender
log4j2.appender.syslog.type=Syslog
log4j2.appender.syslog.name=Syslog
log4j2.appender.syslog.facility=SYSLOG
log4j2.appender.syslog.host=localhost
log4j2.appender.syslog.port=514
log4j2.appender.syslog.protocol=UDP
#Async
log4j2.rootLogger.type = asyncRoot
log4j2.rootLogger.includeLocation = false