CMS MessageLogger: Routing Messges to log4cplus

CMS MessageLogger Service
Routing Messges to log4cplus

process TEST = {
  service = MLlog4cplus
  service = MessageLogger {
    vstring destinations = {   "detailedInfo.txt"  }
    PSet log4cplus     = { string threshold = "ERROR"   }
  }
  untracked PSet maxEvents = {untracked int32 input = 5}
  path p = { myAnalysisModule }
  module myAnalysisModule = ModuleThatIssuesMessages { }
  source = EmptySource { }
}
The service = MLlog4cplus informs the ssytem to attach a destination which will send messages of log4cplus. The PSet log4cplus = {...} configures that destination, just the same as any other output destination could be configured.

Note, however, that the vstring destinations = {...} list must not include "log4cplus". The contents of that vstring are used to decide which ordinary file (or cout or cerr) destinations to create and attach.

Some special information pertaining to using log4cplus as a destination for messages:

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


Mark Fischler
Last modified: November 29, 2005