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 # Uses include MessageLogger.cfi, and overrides destinations to just errors.
0003 #  Used to investigate spoor log fiels like infos.log
0004 #  Derived from u9_cfg.py
0005 
0006 import FWCore.ParameterSet.Config as cms
0007 
0008 process = cms.Process("TEST")
0009 
0010 import FWCore.Framework.test.cmsExceptionsFatal_cff
0011 process.options = FWCore.Framework.test.cmsExceptionsFatal_cff.options
0012 
0013 process.load("FWCore.MessageService.test.Services_cff")
0014 
0015 process.load("FWCore.MessageService.MessageLogger_cfi")
0016 
0017 process.MessageLogger.files.errors = dict(
0018     threshold = 'ERROR',
0019     default = cms.untracked.PSet(
0020         limit = cms.untracked.int32(3)
0021     ),
0022     noTimeStamps = True
0023 )
0024 
0025 process.maxEvents = cms.untracked.PSet(
0026     input = cms.untracked.int32(1)
0027 )
0028 
0029 process.source = cms.Source("EmptySource")
0030 
0031 process.sendSomeMessages = cms.EDAnalyzer("UnitTestClient_G")
0032 
0033 process.p = cms.Path(process.sendSomeMessages)