CMS MessageLogger: Setting a Destination's Threshold
CMS MessageLogger Service
Setting a Destination's Threshold
process TEST = {
service = MessageLogger {
vstring destinations = { "detailedInfo.txt"
, "critical.txt"
, "cout"
, "cerr"
}
PSet critical.txt = { string threshold = "ERROR" }
PSet detailedInfo.txt = { string threshold = "INFO" }
PSet cerr = { string threshold = "WARNING" }
}
untracked PSet maxEvents = {untracked int32 input = 5}
path p = { myAnalysisModule }
module myAnalysisModule = ModuleThatIssuesMessages { }
source = EmptySource { }
}
The string threshold = "INFO" parameter
in the PSet configuring detailedInfo.txt tells the
destination producing the file critical.txt to ignore all messages
with severity below INFO. Since only message
issued using LogDebug are below this severity,
this means that detailedInfo.txt can react to all non-debug messages but
will ignore debug messages.
USCMS Software and Computing Home Page -
CMS MessageLogger Service Page -
Configuration File
Mark Fischler
Last modified: November 29, 2005