Class LoggingManagerImpl
java.lang.Object
com.inductiveautomation.ignition.common.logging.LoggingManagerImpl
- All Implemented Interfaces:
LogFilterSettings
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPropertyFilter
(String key, String value) Restricts collected events to only those that have the matching value, IF the key is present in the MDC context.protected LoggingSystemTurboFilter
Returns basefilter, first initializing and adding to logger context if needed.void
clearPropertyLevel
(String key, String value) Removes a specific key/value level from the logging system.void
Clears all property levels defined in the system.protected ch.qos.logback.classic.LoggerContext
Returns a map of the property keys currently applied, as well as their values and the Level set for each valuevoid
removePropertyFilter
(String key, String value) Removes a filter previously registered with addPropertyFilter.void
Sets the level for the specified logger.void
setPropertyLevel
(String key, String value, Level level) Sets a level for a specific MDC property/value, creating the property/value if necessary.void
shutdown()
void
startup()
-
Field Details
-
log
protected org.slf4j.Logger log
-
-
Constructor Details
-
LoggingManagerImpl
public LoggingManagerImpl()
-
-
Method Details
-
startup
public void startup() -
shutdown
public void shutdown() -
baseFilter
Returns basefilter, first initializing and adding to logger context if needed. -
setLevel
Description copied from interface:LogFilterSettings
Sets the level for the specified logger.- Specified by:
setLevel
in interfaceLogFilterSettings
-
setPropertyLevel
Description copied from interface:LogFilterSettings
Sets a level for a specific MDC property/value, creating the property/value if necessary. This will cause events with matching properties to be collected at this level by the monitoring session, even if the logger level is more restrictive. This setting will not affect other monitoring sessions.- Specified by:
setPropertyLevel
in interfaceLogFilterSettings
- Parameters:
key
- the name of theMDC
property keyvalue
- the specific value belonging to the key that theLevel
should apply to.level
- The level to set theMDC
key value to.
-
clearPropertyLevel
Description copied from interface:LogFilterSettings
Removes a specific key/value level from the logging system.- Specified by:
clearPropertyLevel
in interfaceLogFilterSettings
-
clearPropertyLevels
public void clearPropertyLevels()Description copied from interface:LogFilterSettings
Clears all property levels defined in the system.- Specified by:
clearPropertyLevels
in interfaceLogFilterSettings
-
addPropertyFilter
Description copied from interface:LogFilterSettings
Restricts collected events to only those that have the matching value, IF the key is present in the MDC context. In other words, this filter is not applied to events that do not have the key present.- Specified by:
addPropertyFilter
in interfaceLogFilterSettings
- Parameters:
key
- name of the property filter to addvalue
- the value for the given key that should be filtered for
-
removePropertyFilter
Description copied from interface:LogFilterSettings
Removes a filter previously registered with addPropertyFilter.- Specified by:
removePropertyFilter
in interfaceLogFilterSettings
-
propertyFilterSettings
Returns a map of the property keys currently applied, as well as their values and the Level set for each value- Specified by:
propertyFilterSettings
in interfaceLogFilterSettings
-
getLoggerContext
protected ch.qos.logback.classic.LoggerContext getLoggerContext()
-