- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.classic.tyler.TylerConfiguratorBase
-
- All Implemented Interfaces:
ContextAware,ContextAwarePropertyContainer,PropertyContainer
public class TylerConfiguratorBase extends ContextAwareBase implements ContextAwarePropertyContainer
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROPERTY_MODEL_HANDLER_HELPER_FIELD_NAMEprotected PropertyModelHandlerHelperpropertyModelHandlerHelperstatic StringSET_CONTEXT_METHOD_NAMEstatic StringSET_CONTEXT_NAME_METHOD_NAMEstatic StringSETUP_LOGGER_METHOD_NAMEstatic StringVARIABLE_SUBSTITUTIONS_HELPER_FIELD_NAMEprotected VariableSubstitutionsHelpervariableSubstitutionsHelper-
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
-
Constructor Summary
Constructors Constructor Description TylerConfiguratorBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddOnConsoleStatusListener()voidaddSubstitutionProperty(String key, String value)Supplier<? extends GenericXMLConfigurator>getConfiguratorSupplier()Return a supplier which supplies an instance ofJoranConfiguratorset to the same context the context of 'this'.Map<String,String>getCopyOfPropertyMap()StringgetProperty(String key)If a key is found in propertiesMap then return it.booleanisDefined(String k)Method used in conditional evaluationbooleanisNull(String k)Stringp(String k)Shorthand forproperty(String).protected voidprocessModelFromIncludedFile(Model modelFromIncludedFile)Stringproperty(String k)Return the value of the property named k.voidsetContext(Context context)protected voidsetContextName(String name)protected LoggersetupLogger(String loggerName, String levelString, Boolean additivity)Stringsubst(String ref)Performs variable substitution.-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager
-
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
-
Methods inherited from interface ch.qos.logback.core.spi.PropertyContainer
addSubstitutionProperties
-
-
-
-
Field Detail
-
SET_CONTEXT_METHOD_NAME
public static final String SET_CONTEXT_METHOD_NAME
- See Also:
- Constant Field Values
-
SET_CONTEXT_NAME_METHOD_NAME
public static final String SET_CONTEXT_NAME_METHOD_NAME
- See Also:
- Constant Field Values
-
SETUP_LOGGER_METHOD_NAME
public static final String SETUP_LOGGER_METHOD_NAME
- See Also:
- Constant Field Values
-
VARIABLE_SUBSTITUTIONS_HELPER_FIELD_NAME
public static final String VARIABLE_SUBSTITUTIONS_HELPER_FIELD_NAME
- See Also:
- Constant Field Values
-
PROPERTY_MODEL_HANDLER_HELPER_FIELD_NAME
public static final String PROPERTY_MODEL_HANDLER_HELPER_FIELD_NAME
- See Also:
- Constant Field Values
-
variableSubstitutionsHelper
protected VariableSubstitutionsHelper variableSubstitutionsHelper
-
propertyModelHandlerHelper
protected PropertyModelHandlerHelper propertyModelHandlerHelper
-
-
Constructor Detail
-
TylerConfiguratorBase
public TylerConfiguratorBase()
-
-
Method Detail
-
setupLogger
protected Logger setupLogger(String loggerName, String levelString, Boolean additivity)
-
setContext
public void setContext(Context context)
- Specified by:
setContextin interfaceContextAware- Overrides:
setContextin classContextAwareBase
-
setContextName
protected void setContextName(String name)
-
addOnConsoleStatusListener
protected void addOnConsoleStatusListener()
-
subst
public String subst(String ref)
Performs variable substitution.- Specified by:
substin interfaceContextAwarePropertyContainer- Parameters:
ref-- Returns:
-
addSubstitutionProperty
public void addSubstitutionProperty(String key, String value)
- Specified by:
addSubstitutionPropertyin interfacePropertyContainer
-
getProperty
public String getProperty(String key)
If a key is found in propertiesMap then return it.- Specified by:
getPropertyin interfacePropertyContainer
-
getCopyOfPropertyMap
public Map<String,String> getCopyOfPropertyMap()
- Specified by:
getCopyOfPropertyMapin interfacePropertyContainer
-
isDefined
public boolean isDefined(String k)
Method used in conditional evaluation- Parameters:
k- a property name- Returns:
- true if the property is defined
- Since:
- 1.5.4
-
p
public String p(String k)
Shorthand forproperty(String).- Parameters:
k- a property name- Returns:
- value of property k
- Since:
- 1.5.4
-
property
public String property(String k)
Return the value of the property named k. If the value is null, then the empty string is returned to avoid null checks.- Parameters:
k- property name- Returns:
- the value of the property named k
- Since:
- 1.5.4
-
getConfiguratorSupplier
public Supplier<? extends GenericXMLConfigurator> getConfiguratorSupplier()
Return a supplier which supplies an instance ofJoranConfiguratorset to the same context the context of 'this'.- Specified by:
getConfiguratorSupplierin interfaceContextAwarePropertyContainer- Returns:
- a supplier of
GenericXMLConfiguratorinstance, may be null - Since:
- 1.5.11
-
processModelFromIncludedFile
protected void processModelFromIncludedFile(Model modelFromIncludedFile)
-
-