# Unit test configuration file for MessageLogger service
# Uses include MessageLogger.cfi and rather little else

import FWCore.ParameterSet.Config as cms

process = cms.Process("TEST")

import FWCore.Framework.test.cmsExceptionsFatal_cff
process.options = FWCore.Framework.test.cmsExceptionsFatal_cff.options

process.load("FWCore.MessageService.test.Services_cff")

process.load("FWCore.MessageService.MessageLogger_cfi")

process.MessageLogger.cerr.enable = False
process.MessageLogger.default = cms.untracked.PSet(
    noTimeStamps = cms.untracked.bool(False),
    FwkTest = cms.untracked.PSet(
        limit = cms.untracked.int32(0)
    ),
    limit = cms.untracked.int32(-1)
)
process.MessageLogger.files.warnings = cms.untracked.PSet(
    threshold = cms.untracked.string('WARNING'),
    enableStatistics = cms.untracked.bool(True),
    default = cms.untracked.PSet(
        limit = cms.untracked.int32(3)
    ),
    noTimeStamps = cms.untracked.bool(True)
)
process.MessageLogger.files.infos = cms.untracked.PSet(
    default = cms.untracked.PSet(
        limit = cms.untracked.int32(2)
    ),
    noTimeStamps = cms.untracked.bool(True),
    enableStatistics = cms.untracked.bool(True),
    FwkTest = cms.untracked.PSet(
        limit = cms.untracked.int32(0)
    )
)

process.CPU = cms.Service("CPU",
    disableJobReportOutput = cms.untracked.bool(True)
)

process.maxEvents = cms.untracked.PSet(
    input = cms.untracked.int32(1)
)

process.source = cms.Source("EmptySource")

process.sendSomeMessages = cms.EDAnalyzer("UnitTestClient_G")

process.p = cms.Path(process.sendSomeMessages)
