CMS MessageLogger: Requesting the MessageLogger Service

CMS MessageLogger Service
Requesting the MessageLogger Service

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 service = MessageLogger { ... } parameter tells the framework that you wish to have available the MessageLogger service. Parameters configuring that service appear between the braces.

Although messages can be issued without having asked for the service, it is strongly recommended that jobs which may send messages include this in their .cfg file.

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


Mark Fischler
Last modified: November 29, 2005