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 # distinct threshold level for linked destination.
0003 # A destination with different PSet name uses output= to share the
0004 # same stream as an ordinary output destination.  But their thresholds
0005 # are different.
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       u28_output = cms.untracked.PSet(
0022           threshold = cms.untracked.string('INFO'),
0023           noTimeStamps = cms.untracked.bool(True),
0024           enableStatistics = cms.untracked.bool(True),
0025           statisticsThreshold = cms.untracked.string('WARNING')
0026       )
0027     )
0028 )
0029 
0030 process.maxEvents = cms.untracked.PSet(
0031     input = cms.untracked.int32(3)
0032 )
0033 
0034 process.source = cms.Source("EmptySource")
0035 
0036 process.sendSomeMessages = cms.EDAnalyzer("UnitTestClient_A")
0037 
0038 process.p = cms.Path(process.sendSomeMessages)