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
Modifier and TypeFieldDescriptionstatic final String
protected PropertyModelHandlerHelper
static final String
static final String
static final String
static final String
protected VariableSubstitutionsHelper
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
addSubstitutionProperty
(String key, String value) getProperty
(String key) If a key is found in propertiesMap then return it.boolean
Method used in conditional evaluationboolean
Shorthand forproperty(String)
.Return the value of the property named k.void
setContext
(Context context) protected void
setContextName
(String name) protected Logger
setupLogger
(String loggerName, String levelString, Boolean additivity) 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 Details
-
SET_CONTEXT_METHOD_NAME
- See Also:
-
SET_CONTEXT_NAME_METHOD_NAME
- See Also:
-
SETUP_LOGGER_METHOD_NAME
- See Also:
-
VARIABLE_SUBSTITUTIONS_HELPER_FIELD_NAME
- See Also:
-
PROPERTY_MODEL_HANDLER_HELPER_FIELD_NAME
- See Also:
-
variableSubstitutionsHelper
-
propertyModelHandlerHelper
-
-
Constructor Details
-
TylerConfiguratorBase
public TylerConfiguratorBase()
-
-
Method Details
-
setupLogger
-
setContext
- Specified by:
setContext
in interfaceContextAware
- Overrides:
setContext
in classContextAwareBase
-
setContextName
-
addOnConsoleStatusListener
-
subst
Performs variable substitution.- Specified by:
subst
in interfaceContextAwarePropertyContainer
- Parameters:
ref
-- Returns:
-
addSubstitutionProperty
- Specified by:
addSubstitutionProperty
in interfacePropertyContainer
-
getProperty
If a key is found in propertiesMap then return it.- Specified by:
getProperty
in interfacePropertyContainer
-
getCopyOfPropertyMap
- Specified by:
getCopyOfPropertyMap
in interfacePropertyContainer
-
isNull
-
isDefined
Method used in conditional evaluation- Parameters:
k
- a property name- Returns:
- true if the property is defined
- Since:
- 1.5.4
-
p
Shorthand forproperty(String)
.- Parameters:
k
- a property name- Returns:
- value of property k
- Since:
- 1.5.4
-
property
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
-