Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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