Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:28:45

0001 # Unit test configuration file for MessageLogger service:
0002 # test message suppression by severity and module (and source)
0003 
0004 import FWCore.ParameterSet.Config as cms
0005 
0006 process = cms.Process("TEST")
0007 
0008 import FWCore.Framework.test.cmsExceptionsFatal_cff
0009 process.options = FWCore.Framework.test.cmsExceptionsFatal_cff.options
0010 
0011 process.load("FWCore.MessageService.test.Services_cff")
0012 
0013 process.MessageLogger = cms.Service("MessageLogger",
0014     suppressInfo = cms.untracked.vstring('sendSomeMessages'),
0015     suppressFwkInfo = cms.untracked.vstring('source'),
0016     cerr = cms.untracked.PSet(
0017         enable = cms.untracked.bool(False)
0018     ),
0019     files = cms.untracked.PSet(
0020         u14_default = cms.untracked.PSet(
0021             noTimeStamps = cms.untracked.bool(True)
0022         ),
0023         u14_errors = cms.untracked.PSet(
0024             threshold = cms.untracked.string('ERROR'),
0025             noTimeStamps = cms.untracked.bool(True)
0026         ),
0027         u14_infos = cms.untracked.PSet(
0028             threshold = cms.untracked.string('INFO'),
0029             noTimeStamps = cms.untracked.bool(True)
0030         ),
0031         u14_warnings = cms.untracked.PSet(
0032             threshold = cms.untracked.string('WARNING'),
0033             noTimeStamps = cms.untracked.bool(True)
0034         ),
0035         u14_debugs = cms.untracked.PSet(
0036             threshold = cms.untracked.string('DEBUG'),
0037             noTimeStamps = cms.untracked.bool(True)
0038         )
0039     ),
0040     debugModules = cms.untracked.vstring('*')
0041 )
0042 
0043 process.maxEvents = cms.untracked.PSet(
0044     input = cms.untracked.int32(2)
0045 )
0046 
0047 process.source = cms.Source("EmptySource")
0048 
0049 process.sendSomeMessages = cms.EDAnalyzer("UnitTestClient_I")
0050 
0051 process.p = cms.Path(process.sendSomeMessages)
0052 
0053