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 # also verify name used for "severe" errors is System, not Severe, in summary
0007 
0008 import FWCore.ParameterSet.Config as cms
0009 
0010 process = cms.Process("TEST")
0011 
0012 import FWCore.Framework.test.cmsExceptionsFatal_cff
0013 process.options = FWCore.Framework.test.cmsExceptionsFatal_cff.options
0014 
0015 process.load("FWCore.MessageService.test.Services_cff")
0016 
0017 process.MessageLogger = cms.Service("MessageLogger",
0018     cerr = cms.untracked.PSet(
0019         enable = cms.untracked.bool(False)
0020     ),
0021     files = cms.untracked.PSet(
0022         u17_all = cms.untracked.PSet(
0023             threshold = cms.untracked.string('INFO'),
0024             noTimeStamps = cms.untracked.bool(True),
0025             enableStatistics = cms.untracked.bool(True),
0026             FwkTest = cms.untracked.PSet(
0027                 limit = cms.untracked.int32(0)
0028             ),
0029             FwkReport = cms.untracked.PSet(
0030                 limit = cms.untracked.int32(110)
0031             ),
0032             cat_P = cms.untracked.PSet(
0033                 limit = cms.untracked.int32(2)
0034             ),
0035             cat_S = cms.untracked.PSet(
0036                 limit = cms.untracked.int32(2)
0037             )
0038         )
0039     )
0040 )
0041 
0042 process.maxEvents = cms.untracked.PSet(
0043     input = cms.untracked.int32(2)
0044 )
0045 
0046 process.source = cms.Source("EmptySource")
0047 
0048 process.sendSomeMessages = cms.EDAnalyzer("UnitTestClient_K")
0049 
0050 process.p = cms.Path(process.sendSomeMessages)