Class LoggingManagerImpl
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.logging.LoggingManagerImpl
 
- 
- All Implemented Interfaces:
- LogFilterSettings
 
 public class LoggingManagerImpl extends java.lang.Object implements LogFilterSettings 
- 
- 
Field SummaryFields Modifier and Type Field Description protected org.slf4j.Loggerlog
 - 
Constructor SummaryConstructors Constructor Description LoggingManagerImpl()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPropertyFilter(java.lang.String key, java.lang.String value)Restricts collected events to only those that have the matching value, IF the key is present in the MDC context.protected LoggingSystemTurboFilterbaseFilter()Returns basefilter, first initializing and adding to logger context if needed.voidclearPropertyLevel(java.lang.String key, java.lang.String value)Removes a specific key/value level from the logging system.voidclearPropertyLevels()Clears all property levels defined in the system.protected ch.qos.logback.classic.LoggerContextgetLoggerContext()java.util.Map<java.lang.String,java.util.Map<java.lang.String,Level>>propertyFilterSettings()Returns a map of the property keys currently applied, as well as their values and the Level set for each valuevoidremovePropertyFilter(java.lang.String key, java.lang.String value)Removes a filter previously registered with addPropertyFilter.voidsetLevel(java.lang.String logger, Level level)Sets the level for the specified logger.voidsetPropertyLevel(java.lang.String key, java.lang.String value, Level level)Sets a level for a specific MDC property/value, creating the property/value if necessary.voidshutdown()voidstartup()
 
- 
- 
- 
Method Detail- 
startuppublic void startup() 
 - 
shutdownpublic void shutdown() 
 - 
baseFilterprotected LoggingSystemTurboFilter baseFilter() Returns basefilter, first initializing and adding to logger context if needed.
 - 
setLevelpublic void setLevel(java.lang.String logger, Level level)Description copied from interface:LogFilterSettingsSets the level for the specified logger.- Specified by:
- setLevelin interface- LogFilterSettings
 
 - 
setPropertyLevelpublic void setPropertyLevel(java.lang.String key, java.lang.String value, Level level)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 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.
 
 - 
clearPropertyLevelpublic void clearPropertyLevel(java.lang.String key, java.lang.String value)Description 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
 
 - 
addPropertyFilterpublic void addPropertyFilter(java.lang.String key, java.lang.String value)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 interface- LogFilterSettings
- Parameters:
- key- name of the property filter to add
- value- the value for the given key that should be filtered for
 
 - 
removePropertyFilterpublic void removePropertyFilter(java.lang.String key, java.lang.String value)Description copied from interface:LogFilterSettingsRemoves a filter previously registered with addPropertyFilter.- Specified by:
- removePropertyFilterin interface- LogFilterSettings
 
 - 
propertyFilterSettingspublic java.util.Map<java.lang.String,java.util.Map<java.lang.String,Level>> 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 interface- LogFilterSettings
 
 - 
getLoggerContextprotected ch.qos.logback.classic.LoggerContext getLoggerContext() 
 
- 
 
-