import FWCore.ParameterSet.Config as cms process = cms.Process("MessageLoggerExample") process.load("FWCore.MessageLogger.MessageLogger_cfi") process.MessageLogger = cms.Service("MessageLogger", destinations = cms.untracked.vstring( 'detailedInfo' ,'critical' ,'cout' ,'cerr' ), critical = cms.untracked.PSet( threshold = cms.untracked.string('ERROR') ), detailedInfo = cms.untracked.PSet( threshold = cms.untracked.string('INFO') ), cerr = cms.untracked.PSet( threshold = cms.untracked.string('WARNING') ) ) # set the number of events process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(5) ) process.myAnalysisModule = cms.EDAnalyzer('ModuleThatIssuesMessages') process.p = cms.Path(process.myAnalysisModule)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. -- SudhirMalik - 30-Aug-2011