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 TypeMethodDescriptionvoidaddPropertyFilter(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 LoggingSystemTurboFilterReturns basefilter, first initializing and adding to logger context if needed.voidclearPropertyLevel(String key, String value) Removes a specific key/value level from the logging system.voidClears all property levels defined in the system.protected ch.qos.logback.classic.LoggerContextReturns a map of the property keys currently applied, as well as their values and the Level set for each valuevoidremovePropertyFilter(String key, String value) Removes a filter previously registered with addPropertyFilter.voidSets the level for the specified logger.voidsetPropertyLevel(String key, String value, Level level) Sets a level for a specific MDC property/value, creating the property/value if necessary.voidshutdown()voidstartup()
-
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:LogFilterSettingsSets the level for the specified logger.- Specified by:
setLevelin interfaceLogFilterSettings
-
setPropertyLevel
Description copied from interface:LogFilterSettingsSets 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:
setPropertyLevelin interfaceLogFilterSettings- Parameters:
key- the name of theMDCproperty keyvalue- the specific value belonging to the key that theLevelshould apply to.level- The level to set theMDCkey value to.
-
clearPropertyLevel
Description copied from interface:LogFilterSettingsRemoves a specific key/value level from the logging system.- Specified by:
clearPropertyLevelin interfaceLogFilterSettings
-
clearPropertyLevels
public void clearPropertyLevels()Description copied from interface:LogFilterSettingsClears all property levels defined in the system.- Specified by:
clearPropertyLevelsin interfaceLogFilterSettings
-
addPropertyFilter
Description copied from interface:LogFilterSettingsRestricts 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:
addPropertyFilterin 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:LogFilterSettingsRemoves a filter previously registered with addPropertyFilter.- Specified by:
removePropertyFilterin 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:
propertyFilterSettingsin interfaceLogFilterSettings
-
getLoggerContext
protected ch.qos.logback.classic.LoggerContext getLoggerContext()
-