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 
0007 import FWCore.ParameterSet.Config as cms
0008 
0009 process = cms.Process("TEST")
0010 
0011 import FWCore.Framework.test.cmsExceptionsFatal_cff
0012 process.options = FWCore.Framework.test.cmsExceptionsFatal_cff.options
0013 
0014 process.load("FWCore.MessageService.test.Services_cff")
0015 
0016 process.MessageLogger = cms.Service("MessageLogger",
0017     cerr = cms.untracked.PSet(
0018         enable = cms.untracked.bool(False)
0019     ),
0020     files = cms.untracked.PSet(
0021         u1_infos = cms.untracked.PSet(
0022             threshold = cms.untracked.string('INFO'),
0023             noTimeStamps = cms.untracked.bool(True),
0024             FwkTest = cms.untracked.PSet(
0025                 limit = cms.untracked.int32(0)
0026             ),
0027             preEventProcessing = cms.untracked.PSet(
0028                 limit = cms.untracked.int32(0)
0029             )
0030         ),
0031         u1_warnings = cms.untracked.PSet(
0032             threshold = cms.untracked.string('WARNING'),
0033             noTimeStamps = cms.untracked.bool(True)
0034         ),
0035         u1_debugs = cms.untracked.PSet(
0036             threshold = cms.untracked.string('DEBUG'),
0037             noTimeStamps = cms.untracked.bool(True),
0038             FwkTest = cms.untracked.PSet(
0039                 limit = cms.untracked.int32(0)
0040             ),
0041             preEventProcessing = cms.untracked.PSet(
0042                 limit = cms.untracked.int32(0)
0043             )
0044         ),
0045         u1_default = cms.untracked.PSet(
0046             noTimeStamps = cms.untracked.bool(True),
0047             FwkTest = cms.untracked.PSet(
0048                 limit = cms.untracked.int32(0)
0049             ),
0050             preEventProcessing = cms.untracked.PSet(
0051                 limit = cms.untracked.int32(0)
0052             )
0053         ),
0054         u1_errors = cms.untracked.PSet(
0055             threshold = cms.untracked.string('ERROR'),
0056             noTimeStamps = cms.untracked.bool(True)
0057         )
0058     ),
0059     debugModules = cms.untracked.vstring('*'),
0060 )
0061 
0062 process.maxEvents = cms.untracked.PSet(
0063     input = cms.untracked.int32(2)
0064 )
0065 
0066 process.source = cms.Source("EmptySource")
0067 
0068 process.sendSomeMessages = cms.EDAnalyzer("UnitTestClient_A")
0069 
0070 process.p = cms.Path(process.sendSomeMessages)