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:

  1. if -Dlogback.configurationFile=/somedir/logback.xml is set, it is used
  2. if logback-test.xml is found in classpath, it is used (this happens only during tests)
  3. if system propertyperun.conf.custom defines a directory with logback.xml, it is used
  4. if file /etc/perun/logback.xml exists, it is used
  5. if logback.xml is found anywhere on the classpath, it is used (like perun-engine, perun-ldapc, ...)
  6. if logback-default.xml is found anywhere on the classpath, it is used (RPC)
  7. if everything else fails, logback's BasicConfigurator is used
Author:
Martin Kuba makub@ics.muni.cz