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     debugModules = cms.untracked.vstring('*'),
0016     cerr = cms.untracked.PSet(
0017         enable = cms.untracked.bool(False)
0018     ),
0019     default = cms.untracked.PSet(
0020         FwkTest = cms.untracked.PSet(
0021             limit = cms.untracked.int32(0)
0022         )
0023     ),
0024     files = cms.untracked.PSet(
0025         # produce file u16_statistics.mslog
0026         u16_statistics = cms.untracked.PSet(
0027             threshold = cms.untracked.string('WARNING'),
0028             noTimeStamps = cms.untracked.bool(True),
0029             extension = cms.untracked.string('mslog'),
0030             enableStatistics = cms.untracked.bool(True),
0031             default = cms.untracked.PSet(
0032               limit = cms.untracked.int32(0)
0033             )
0034         ),
0035         # produce file u16_job_report.mmxml
0036         u16_job_report = cms.untracked.PSet(
0037             extension = cms.untracked.string('mmxml')
0038         ),
0039         # produce file u16_errors.mmlog
0040         u16_errors = cms.untracked.PSet(
0041             threshold = cms.untracked.string('ERROR'),
0042             noTimeStamps = cms.untracked.bool(True),
0043             extension = cms.untracked.string('mmlog'),
0044             enableStatistics = cms.untracked.bool(True)
0045         ),
0046         # produce file u16_altWarnings.log
0047         u16_warnings = cms.untracked.PSet(
0048             threshold = cms.untracked.string('WARNING'),
0049             noTimeStamps = cms.untracked.bool(True),
0050             filename = cms.untracked.string('u16_altWarnings')
0051         ),
0052         # produce file u16_default.log
0053         u16_default = cms.untracked.PSet(
0054             noTimeStamps = cms.untracked.bool(True)
0055         ),
0056         # produce file u16_infos.mmlog
0057         u16_infos = cms.untracked.PSet(
0058             threshold = cms.untracked.string('INFO'),
0059             noTimeStamps = cms.untracked.bool(True),
0060             extension = cms.untracked.string('.mmlog')
0061         ),
0062         # produce file u16_altDebugs.mmlog
0063         u16_debugs = cms.untracked.PSet(
0064             threshold = cms.untracked.string('DEBUG'),
0065             noTimeStamps = cms.untracked.bool(True),
0066             preEventProcessing = cms.untracked.PSet(
0067                 limit = cms.untracked.int32(0)
0068             ),
0069             extension = cms.untracked.string('mmlog'),
0070             filename = cms.untracked.string('u16_altDebugs')
0071         ),
0072         # produce another file u16_altWarnings.log - temporary test
0073         u16_warnings2 = cms.untracked.PSet(
0074             threshold = cms.untracked.string('WARNING'),
0075             noTimeStamps = cms.untracked.bool(True),
0076             filename = cms.untracked.string('u16_altWarnings')
0077         )
0078     )
0079 )
0080 
0081 process.maxEvents = cms.untracked.PSet(
0082     input = cms.untracked.int32(2)
0083 )
0084 
0085 process.source = cms.Source("EmptySource")
0086 
0087 process.sendSomeMessages = cms.EDAnalyzer("UnitTestClient_A")
0088 
0089 process.p = cms.Path(process.sendSomeMessages)