Class LogbackPropertyDefiner

java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.PropertyDefinerBase
com.evolveum.midpoint.common.LogbackPropertyDefiner
All Implemented Interfaces:
ch.qos.logback.core.spi.ContextAware, ch.qos.logback.core.spi.PropertyDefiner
Direct Known Subclasses:
LogbackPropertyDefinerForTimezone

public class LogbackPropertyDefiner extends ch.qos.logback.core.PropertyDefinerBase
It was simply not possible to provide an empty default value for logback property. So this is the workaround. See https://stackoverflow.com/questions/44671972/empty-default-string-for-property-in-logback-xml. Even ... does not work, because the "" cannot be used as a property value. So, the property definer is a workaround.
  • 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
    protected String
     
     
    void
    setDefaultValue(String defaultValue)
     
    void
    setPropertyName(String propertyName)
     

    Methods inherited from class ch.qos.logback.core.PropertyDefinerBase

    booleanAsStr

    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

    • LogbackPropertyDefiner

      public LogbackPropertyDefiner()
  • Method Details

    • setPropertyName

      public void setPropertyName(String propertyName)
    • setDefaultValue

      public void setDefaultValue(String defaultValue)
    • getDefaultValue

      protected String getDefaultValue()
    • getPropertyValue

      public String getPropertyValue()