Class LoggingManagerImpl
java.lang.Object
com.inductiveautomation.ignition.common.logging.LoggingManagerImpl
- All Implemented Interfaces:
- LogFilterSettings
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
logprotected org.slf4j.Logger log
 
- 
- 
Constructor Details- 
LoggingManagerImplpublic LoggingManagerImpl()
 
- 
- 
Method Details- 
startuppublic void startup()
- 
shutdownpublic void shutdown()
- 
baseFilterReturns basefilter, first initializing and adding to logger context if needed.
- 
setLevelDescription copied from interface:LogFilterSettingsSets the level for the specified logger.- Specified by:
- setLevelin interface- LogFilterSettings
 
- 
setPropertyLevelDescription 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 interface- LogFilterSettings
- Parameters:
- key- the name of the- MDCproperty key
- value- the specific value belonging to the key that the- Levelshould apply to.
- level- The level to set the- MDCkey value to.
 
- 
clearPropertyLevelDescription copied from interface:LogFilterSettingsRemoves a specific key/value level from the logging system.- Specified by:
- clearPropertyLevelin interface- LogFilterSettings
 
- 
clearPropertyLevelspublic void clearPropertyLevels()Description copied from interface:LogFilterSettingsClears all property levels defined in the system.- Specified by:
- clearPropertyLevelsin interface- LogFilterSettings
 
- 
addPropertyFilterDescription 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 interface- LogFilterSettings
- Parameters:
- key- name of the property filter to add
- value- the value for the given key that should be filtered for
 
- 
removePropertyFilterDescription copied from interface:LogFilterSettingsRemoves a filter previously registered with addPropertyFilter.- Specified by:
- removePropertyFilterin interface- LogFilterSettings
 
- 
propertyFilterSettingsReturns a map of the property keys currently applied, as well as their values and the Level set for each value- Specified by:
- propertyFilterSettingsin interface- LogFilterSettings
 
- 
getLoggerContextprotected ch.qos.logback.classic.LoggerContext getLoggerContext()
 
-