Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 # Test of a feature of PSet validation:
0002 #   messageSummaryToJobReport
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     cerr = cms.untracked.PSet(
0015         enable = cms.untracked.bool(False)
0016     ),
0017     debugModules = cms.untracked.vstring('*'),
0018     files = cms.untracked.PSet(
0019         u1_debugs = cms.untracked.PSet(
0020             FwkTest = cms.untracked.PSet(
0021                 limit = cms.untracked.int32(0)
0022             ),
0023             noTimeStamps = cms.untracked.bool(True),
0024             preEventProcessing = cms.untracked.PSet(
0025                 limit = cms.untracked.int32(0)
0026             ),
0027             threshold = cms.untracked.string('DEBUG')
0028         ),
0029         u1_default = cms.untracked.PSet(
0030             FwkTest = cms.untracked.PSet(
0031                 limit = cms.untracked.int32(0)
0032             ),
0033             noTimeStamps = cms.untracked.bool(True),
0034             preEventProcessing = cms.untracked.PSet(
0035                 limit = cms.untracked.int32(0)
0036             )
0037         ),
0038         u1_errors = cms.untracked.PSet(
0039             noTimeStamps = cms.untracked.bool(True),
0040             threshold = cms.untracked.string('ERROR')
0041         ),
0042         u1_infos = cms.untracked.PSet(
0043             FwkTest = cms.untracked.PSet(
0044                 limit = cms.untracked.int32(0)
0045             ),
0046             noTimeStamps = cms.untracked.bool(True),
0047             preEventProcessing = cms.untracked.PSet(
0048                 limit = cms.untracked.int32(0)
0049             ),
0050             threshold = cms.untracked.string('INFO')
0051         ),
0052         u1_warnings = cms.untracked.PSet(
0053             noTimeStamps = cms.untracked.bool(True),
0054             threshold = cms.untracked.string('WARNING')
0055         )
0056     ),
0057     threshold = cms.untracked.string('DEBUG')
0058 )
0059 
0060 process.maxEvents = cms.untracked.PSet(
0061     input = cms.untracked.int32(2)
0062 )
0063 
0064 process.source = cms.Source("EmptySource")
0065 
0066 process.sendSomeMessages = cms.EDAnalyzer("UnitTestClient_A")
0067 
0068 process.p = cms.Path(process.sendSomeMessages)