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 # Explicit extensions and filenames, in normal distinations,
0003 # statistics, and job reports.
0004 
0005 import FWCore.ParameterSet.Config as cms
0006 
0007 process = cms.Process("TEST")
0008 
0009 import FWCore.Framework.test.cmsExceptionsFatal_cff
0010 process.options = FWCore.Framework.test.cmsExceptionsFatal_cff.options
0011 
0012 process.load("FWCore.MessageService.test.Services_cff")
0013 
0014 process.MessageLogger = cms.Service("MessageLogger",
0015     default = cms.untracked.PSet(
0016         FwkTest = cms.untracked.PSet(
0017             limit = cms.untracked.int32(0)
0018         )
0019     ),
0020     cerr = cms.untracked.PSet(
0021         enable = cms.untracked.bool(False)
0022     ),
0023     files = cms.untracked.PSet(
0024         # produce file u16_statistics.mslog
0025         u16_statistics = cms.untracked.PSet(
0026             threshold = cms.untracked.string('WARNING'),
0027             extension = cms.untracked.string('mslog'),
0028             enableStatistics = cms.untracked.bool(True),
0029             default = cms.untracked.PSet(
0030               limit = cms.untracked.int32(0)
0031             )
0032         ),
0033         # produce file u16_errors.mmlog
0034         u16_errors = cms.untracked.PSet(
0035             threshold = cms.untracked.string('ERROR'),
0036             noTimeStamps = cms.untracked.bool(True),
0037             extension = cms.untracked.string('mmlog'),
0038             enableStatistics = cms.untracked.bool(True)
0039         ),
0040         # produce file u16_altWarnings.log
0041         u16_warnings = cms.untracked.PSet(
0042             threshold = cms.untracked.string('WARNING'),
0043             noTimeStamps = cms.untracked.bool(True),
0044             filename = cms.untracked.string('u16_altWarnings')
0045         ),
0046         # produce file u16_default.log
0047         u16_default = cms.untracked.PSet(
0048             noTimeStamps = cms.untracked.bool(True)
0049         ),
0050         # produce file u16_infos.mmlog
0051         u16_infos = cms.untracked.PSet(
0052             threshold = cms.untracked.string('INFO'),
0053             noTimeStamps = cms.untracked.bool(True),
0054             extension = cms.untracked.string('.mmlog')
0055         ),
0056         # produce file u16_altDebugs.mmlog
0057         u16_debugs = cms.untracked.PSet(
0058             threshold = cms.untracked.string('DEBUG'),
0059             noTimeStamps = cms.untracked.bool(True),
0060             extension = cms.untracked.string('mmlog'),
0061             filename = cms.untracked.string('u16_altDebugs')
0062         )
0063     ),
0064     debugModules = cms.untracked.vstring('*')
0065 )
0066 
0067 process.maxEvents = cms.untracked.PSet(
0068     input = cms.untracked.int32(2)
0069 )
0070 
0071 process.source = cms.Source("EmptySource")
0072 
0073 process.sendSomeMessages = cms.EDAnalyzer("UnitTestClient_Ad")
0074 
0075 process.p = cms.Path(process.sendSomeMessages)