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 logback.xml is found anywhere on the classpath, it is used (like perun-engine)
  4. if system propertyperun.conf.custom defines a directory with logback.xml, it is used
  5. if file /etc/perun/logback.xml exists, it is used
  6. file logback-default.xml from perun-base is loaded
  7. if everything else fails, logback's BasicConfigurator is used
Author:
Martin Kuba makub@ics.muni.cz
  • Field Summary

    Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase

    context
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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 void configure(ch.qos.logback.classic.LoggerContext loggerContext)
      Specified by:
      configure in interface ch.qos.logback.classic.spi.Configurator