################################################################################ # # 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. # ################################################################################ log4j2.status = info log4j2.dest = err log4j2.name = PropertiesConfig log4j2.filter.threshold.type = ThresholdFilter log4j2.filter.threshold.level = debug log4j2.appender.rolling.type = RollingFile log4j2.appender.rolling.name = RollingFile log4j2.appender.rolling.fileName = ${org.osgi.log.dir}/osgi.log log4j2.appender.rolling.filePattern = ${org.osgi.log.dir}/osgi-%d{yyyyMMdd}-%i.log.gz log4j2.appender.rolling.layout.type = PatternLayout log4j2.appender.rolling.layout.pattern = %d{ISO8601} | %-5.5p | %-16.16t | %-32.32c{1} | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n log4j2.appender.rolling.policies.type = Policies log4j2.appender.rolling.policies.time.type = TimeBasedTriggeringPolicy log4j2.appender.rolling.policies.time.interval = 1 log4j2.appender.rolling.policies.time.modulate = true log4j2.appender.rolling.policies.size.type = SizeBasedTriggeringPolicy log4j2.appender.rolling.policies.size.size = 100MB # # Uncomment the following line, if you want to roll the log file upon each restarted # #log4j2.appender.rolling.policies.startup.type = OnStartupTriggeringPolicy log4j2.appender.rolling.strategy.type = DefaultRolloverStrategy log4j2.appender.rolling.strategy.max = 10 # gelf appenders are documented at # http://logging.paluch.biz/examples/log4j-2.x.html # # logstash-gelf's github page is # https://github.com/mp911de/logstash-gelf/ # # graylog's gelf infos: # http://docs.graylog.org/en/2.4/pages/gelf.html # http://docs.graylog.org/en/2.4/pages/sending_data.html#gelf-sending-from-applications # # a fresh graylog installation does not provide gelf ports or other inputs, # inputs must be activated in the WebUI under http://foobar:9000/system/inputs log4j2.appender.gelf.type = Gelf log4j2.appender.gelf.name = gelf log4j2.appender.gelf.host = tcp:localhost log4j2.appender.gelf.port = 12201 log4j2.appender.gelf.version = 1.1 log4j2.appender.gelf.originHost = %host{fqdn} log4j2.appender.gelf.extractStackTrace = true log4j2.appender.gelf.maximumMessageSize = 8192 #log4j2.appender.gelf.timestamp.type = Field #log4j2.appender.gelf.timestamp.name = timestamp #log4j2.appender.gelf.timestamp.pattern = %d{ISO8601} #log4j2.appender.gelf.level.type = Field #log4j2.appender.gelf.level.name = level #log4j2.appender.gelf.level.pattern = %level #log4j2.appender.gelf.className.type = Field #log4j2.appender.gelf.className.name = className #log4j2.appender.gelf.className.pattern = %C # # Individual log levels are configured like follows # #log4j2.logger.1.name = org.clazzes.util.osgi #log4j2.logger.1.level = debug # #log4j2.logger.2.name = org.clazzes.login #log4j2.logger.2.level = debug log4j2.rootLogger.level = info log4j2.rootLogger.appenderRef.rollin.ref = RollingFile log4j2.rootLogger.appenderRef.gelf.ref = gelf log4j2.packages = biz.paluch.logging.gelf.log4j2