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 # 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 # test done with debug enabled
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       u1d_infos = cms.untracked.PSet(
0023           threshold = cms.untracked.string('INFO'),
0024           noTimeStamps = cms.untracked.bool(True),
0025           FwkTest = cms.untracked.PSet(
0026               limit = cms.untracked.int32(0)
0027           ),
0028           preEventProcessing = cms.untracked.PSet(
0029               limit = cms.untracked.int32(0)
0030           )
0031       ),
0032       u1d_warnings = cms.untracked.PSet(
0033           threshold = cms.untracked.string('WARNING'),
0034           noTimeStamps = cms.untracked.bool(True)
0035       ),
0036       u1d_debugs = cms.untracked.PSet(
0037           threshold = cms.untracked.string('DEBUG'),
0038           noTimeStamps = cms.untracked.bool(True),
0039           FwkTest = cms.untracked.PSet(
0040               limit = cms.untracked.int32(0)
0041           ),
0042           preEventProcessing = cms.untracked.PSet(
0043               limit = cms.untracked.int32(0)
0044           )
0045       ),
0046       u1d_default = cms.untracked.PSet(
0047           noTimeStamps = cms.untracked.bool(True),
0048           FwkTest = cms.untracked.PSet(
0049               limit = cms.untracked.int32(0)
0050           ),
0051           preEventProcessing = cms.untracked.PSet(
0052               limit = cms.untracked.int32(0)
0053           )
0054       ),
0055       u1d_errors = cms.untracked.PSet(
0056           threshold = cms.untracked.string('ERROR'),
0057           noTimeStamps = cms.untracked.bool(True)
0058       )
0059     ),
0060     debugModules = cms.untracked.vstring('*')
0061 )
0062 
0063 process.maxEvents = cms.untracked.PSet(
0064     input = cms.untracked.int32(2)
0065 )
0066 
0067 process.source = cms.Source("EmptySource")
0068 
0069 process.sendSomeMessages = cms.EDAnalyzer("UnitTestClient_Ad")
0070 
0071 process.p = cms.Path(process.sendSomeMessages)