Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:12:47

0001 # Unit test configuration file for MessageLogger service:
0002 # threshold levels for destinations
0003 # limit=0 for a category (needed to avoid time stamps in files to be compared)
0004 # enabling all (*) LogDebug, with one destination responding
0005 # verify that by default, the threshold for a destination is INFO
0006 
0007 import FWCore.ParameterSet.Config as cms
0008 
0009 process = cms.Process("TEST")
0010 
0011 import FWCore.Framework.test.cmsExceptionsFatal_cff
0012 process.options = FWCore.Framework.test.cmsExceptionsFatal_cff.options
0013 
0014 process.load("FWCore.MessageService.test.Services_cff")
0015 
0016 process.MessageLogger = cms.Service("MessageLogger",
0017     cerr = cms.untracked.PSet(
0018         enable = cms.untracked.bool(False)
0019     ),
0020     files = cms.untracked.PSet(
0021         u26_warnings = cms.untracked.PSet(
0022             threshold = cms.untracked.string('WARNING'),
0023             noTimeStamps = cms.untracked.bool(True)
0024         )
0025     )
0026 )
0027 
0028 process.maxEvents = cms.untracked.PSet(
0029     input = cms.untracked.int32(2)
0030 )
0031 
0032 process.source = cms.Source("EmptySource")
0033 
0034 process.sendSomeMessages = cms.EDAnalyzer("UnitTestClient_A")
0035 
0036 process.p = cms.Path(process.sendSomeMessages)