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 = "ERROR" parameter in the PSet configuring critical.txt tells the destination producing the file critical.txt to ignore all messages with severity below ERROR. Thus, messages issued using LogDebug, edm::LogInfo, or edm::LogWarning will have no effect on the file critical.txt. This destination will, however, react to messages issued using edm::LogError.

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


Mark Fischler
Last modified: November 29, 2005