Package com.evolveum.midpoint.common
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 SummaryFields inherited from class ch.qos.logback.core.spi.ContextAwareBasecontext
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected StringvoidsetDefaultValue(String defaultValue) voidsetPropertyName(String propertyName) Methods inherited from class ch.qos.logback.core.PropertyDefinerBasebooleanAsStrMethods inherited from class ch.qos.logback.core.spi.ContextAwareBaseaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.qos.logback.core.spi.ContextAwareaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
- 
Constructor Details- 
LogbackPropertyDefinerpublic LogbackPropertyDefiner()
 
- 
- 
Method Details- 
setPropertyName
- 
setDefaultValue
- 
getDefaultValue
- 
getPropertyValue
 
-