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) Supplier
<? extends GenericXMLConfigurator> Return a supplier which supplies an instance ofJoranConfigurator
set to the same context the context of 'this'.getProperty
(String key) If a key is found in propertiesMap then return it.boolean
Method used in conditional evaluationboolean
Shorthand forproperty(String)
.protected void
processModelFromIncludedFile
(Model modelFromIncludedFile) 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
-
p
Shorthand forproperty(String)
.- Parameters:
k
- a property name- Returns:
- value of property k
- Since:
- 1.5.4
-
property
-
getConfiguratorSupplier
Return a supplier which supplies an instance ofJoranConfigurator
set to the same context the context of 'this'.- Specified by:
getConfiguratorSupplier
in interfaceContextAwarePropertyContainer
- Returns:
- a supplier of
GenericXMLConfigurator
instance, may be null - Since:
- 1.5.11
-
processModelFromIncludedFile
-