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 # Behavior when duplicate file names are supplied.
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     default = cms.untracked.PSet(
0015         FwkTest = cms.untracked.PSet(
0016             limit = cms.untracked.int32(0)
0017         )
0018     ),
0019     debugModules = cms.untracked.vstring('*'),
0020     cerr = cms.untracked.PSet(
0021         enable = cms.untracked.bool(False)
0022     ),
0023     files = cms.untracked.PSet(
0024         # produce SAME file u24.log via warnings config - should cause exception!
0025         u24_warnings = cms.untracked.PSet(
0026             threshold = cms.untracked.string('WARNING'),
0027             noTimeStamps = cms.untracked.bool(True),
0028             extension = cms.untracked.string('log'),
0029             filename = cms.untracked.string('u24')
0030         ),
0031         # produce file u24.log
0032         u24_errors = cms.untracked.PSet(
0033             threshold = cms.untracked.string('ERROR'),
0034             noTimeStamps = cms.untracked.bool(True),
0035             extension = cms.untracked.string('log'),
0036             filename = cms.untracked.string('u24')
0037         )
0038     )
0039 )
0040 
0041 process.maxEvents = cms.untracked.PSet(
0042     input = cms.untracked.int32(2)
0043 )
0044 
0045 process.source = cms.Source("EmptySource")
0046 
0047 process.sendSomeMessages = cms.EDAnalyzer("UnitTestClient_A")
0048 
0049 process.p = cms.Path(process.sendSomeMessages)