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 = "WARNING" parameter in the PSet configuring cerr tells the destination writing to cerr to ignore all messages with severity below WARNING. Thus messages issued (after the service has been configured with this .cfg file) using LogDebug and LogInfo will have no effect on cerr.

USCMS Software and Computing Home Page - CMS MessageLogger Service Page - Configuration File


Mark Fischler
Last modified: November 29, 2005