What Gets Logged
Control over what gets logged can be expressed at a global level, or on within the scope of a single filter.
Syntax: globalLevel=levelName
Example: globalLevel=All
GlobalLevel will set the instance variable level of the EsLogManager singleton whose value overrides the levels of all Appenders. It should generally be set to All. Setting it to Off will disable all logging.
Syntax: classNameFilter=someCaseSensitiveLoggerName, someCaseSensitiveAppenderName, someCaseSensitiveFilterName, nameOfASmalltalkClass, acceptOnMatchBoolean
Example: classNameFilter=root, Transcript, ClassNameFilter, Transaction, true
The classNameFilter can be useful if loggingEvents of the same level are sent to an Appender from different classes.
Syntax: levelMatchFilter=someCaseSensitiveLoggerName, someCaseSensitiveAppenderName, someCaseSensitiveFilterName, levelName, acceptOnMatchBoolean
Example: levelMatchFilter=root, Transcript, LevelMatchFilter, Info, true
In the example above the filter allows only logging events with the level Info to appear in the Transcript.
Syntax: levelRangeFilter=someCaseSensitiveLoggerName, someCaseSensitiveAppenderName, someCaseSensitiveFilterName, firstLevelName, secondLevelName, acceptOnMatchBoolean
Example: levelRangeFilter=Vast, Console, LevelRangeFilter, Warn, Info, true
In the example above, the filter allows only logging events with a level between Info and Warn inclusive to appear on the console. Notice that the two level names that specify the level range can be specified in any order.
Syntax: stringMatchFilter=someCaseSensitiveLoggerName, someCaseSensitiveAppenderName, someCaseSensitiveFilterName, stringToMatch, caseSensitiveBoolean, acceptOnMatchBoolean
Example: stringMatchFilter=root, Transcript, StringMatchFilter, MOM, false, true
In the example above, the filter allows logging entries whose message matches the string MOM, regardless of capitalization, to appear in the Transcript.
Last modified date: 12/20/2017