Package cz.metacentrum.perun.logging
Class PerunLogbackConfigurator
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
cz.metacentrum.perun.logging.PerunLogbackConfigurator
- All Implemented Interfaces:
ch.qos.logback.classic.spi.Configurator
,ch.qos.logback.core.spi.ContextAware
public class PerunLogbackConfigurator
extends ch.qos.logback.core.spi.ContextAwareBase
implements ch.qos.logback.classic.spi.Configurator
Configurator for logback logging framework. The loading sequence is as follows:
- if -Dlogback.configurationFile=/somedir/logback.xml is set, it is used
- if logback-test.xml is found in classpath, it is used (this happens only during tests)
- if system propertyperun.conf.custom defines a directory with logback.xml, it is used
- if file /etc/perun/logback.xml exists, it is used
- if logback.xml is found anywhere on the classpath, it is used (like perun-engine, perun-ldapc, ...)
- if logback-default.xml is found anywhere on the classpath, it is used (RPC)
- if everything else fails, logback's BasicConfigurator is used
- Author:
- Martin Kuba makub@ics.muni.cz
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.qos.logback.classic.spi.Configurator
ch.qos.logback.classic.spi.Configurator.ExecutionStatus
-
Field Summary
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionch.qos.logback.classic.spi.Configurator.ExecutionStatus
configure
(ch.qos.logback.classic.LoggerContext loggerContext) Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
Constructor Details
-
PerunLogbackConfigurator
public PerunLogbackConfigurator()
-
-
Method Details
-
configure
public ch.qos.logback.classic.spi.Configurator.ExecutionStatus configure(ch.qos.logback.classic.LoggerContext loggerContext) - Specified by:
configure
in interfacech.qos.logback.classic.spi.Configurator
-