-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35298 from makortel/messageLoggerProcess
Move MessageLogger default configuration to be part of Process
- Loading branch information
Showing
5 changed files
with
229 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
from FWCore.MessageService.MessageLogger_cfi import * | ||
from FWCore.ParameterSet.MessageLogger import * | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,91 +1 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
_category = cms.optional.untracked.PSetTemplate( | ||
reportEvery = cms.untracked.int32(1), | ||
limit = cms.optional.untracked.int32, | ||
timespan = cms.optional.untracked.int32 | ||
) | ||
|
||
_destination_base = cms.untracked.PSet( | ||
noLineBreaks = cms.optional.untracked.bool, | ||
noTimeStamps = cms.optional.untracked.bool, | ||
lineLength = cms.optional.untracked.int32, | ||
threshold = cms.optional.untracked.string, | ||
statisticsThreshold = cms.optional.untracked.string, | ||
allowAnyLabel_ = _category | ||
) | ||
_destination_no_stat = _destination_base.clone( | ||
enableStatistics = cms.untracked.bool(False), | ||
resetStatistics = cms.untracked.bool(False) | ||
) | ||
|
||
_file_destination = cms.optional.untracked.PSetTemplate( | ||
noLineBreaks = cms.optional.untracked.bool, | ||
noTimeStamps = cms.optional.untracked.bool, | ||
lineLength = cms.optional.untracked.int32, | ||
threshold = cms.optional.untracked.string, | ||
statisticsThreshold = cms.optional.untracked.string, | ||
enableStatistics = cms.untracked.bool(False), | ||
resetStatistics = cms.untracked.bool(False), | ||
filename = cms.optional.untracked.string, | ||
extension = cms.optional.untracked.string, | ||
output = cms.optional.untracked.string, | ||
allowAnyLabel_ = _category | ||
) | ||
|
||
_default_pset = cms.untracked.PSet( | ||
reportEvery = cms.untracked.int32(1), | ||
limit = cms.optional.untracked.int32, | ||
timespan = cms.optional.untracked.int32, | ||
|
||
noLineBreaks = cms.untracked.bool(False), | ||
noTimeStamps = cms.untracked.bool(False), | ||
lineLength = cms.untracked.int32(80), | ||
threshold = cms.untracked.string("INFO"), | ||
statisticsThreshold = cms.untracked.string("INFO"), | ||
allowAnyLabel_ = _category | ||
) | ||
|
||
|
||
MessageLogger = cms.Service("MessageLogger", | ||
suppressWarning = cms.untracked.vstring(), | ||
suppressFwkInfo = cms.untracked.vstring(), | ||
suppressInfo = cms.untracked.vstring(), | ||
suppressDebug = cms.untracked.vstring(), | ||
debugModules = cms.untracked.vstring(), | ||
cout = _destination_no_stat.clone( | ||
enable = cms.untracked.bool(False) | ||
), | ||
default = _default_pset.clone(), | ||
cerr = _destination_base.clone( | ||
enable = cms.untracked.bool(True), | ||
enableStatistics = cms.untracked.bool(True), | ||
resetStatistics = cms.untracked.bool(False), | ||
statisticsThreshold = cms.untracked.string('WARNING'), | ||
INFO = cms.untracked.PSet( | ||
limit = cms.untracked.int32(0) | ||
), | ||
noTimeStamps = cms.untracked.bool(False), | ||
FwkReport = cms.untracked.PSet( | ||
reportEvery = cms.untracked.int32(1), | ||
limit = cms.untracked.int32(10000000) | ||
), | ||
default = cms.untracked.PSet( | ||
limit = cms.untracked.int32(10000000) | ||
), | ||
Root_NoDictionary = cms.untracked.PSet( | ||
limit = cms.untracked.int32(0) | ||
), | ||
FwkSummary = cms.untracked.PSet( | ||
reportEvery = cms.untracked.int32(1), | ||
limit = cms.untracked.int32(10000000) | ||
), | ||
threshold = cms.untracked.string('INFO') | ||
), | ||
files = cms.untracked.PSet( | ||
allowAnyLabel_ = _file_destination | ||
), | ||
allowAnyLabel_ = _category | ||
) | ||
|
||
|
||
from FWCore.ParameterSet.MessageLogger import MessageLogger |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
#import FWCore.ParameterSet.Config as cms | ||
from .Types import * | ||
from .Modules import Service | ||
|
||
_category = optional.untracked.PSetTemplate( | ||
reportEvery = untracked.int32(1), | ||
limit = optional.untracked.int32, | ||
timespan = optional.untracked.int32 | ||
) | ||
|
||
_destination_base = untracked.PSet( | ||
noLineBreaks = optional.untracked.bool, | ||
noTimeStamps = optional.untracked.bool, | ||
lineLength = optional.untracked.int32, | ||
threshold = optional.untracked.string, | ||
statisticsThreshold = optional.untracked.string, | ||
allowAnyLabel_ = _category | ||
) | ||
_destination_no_stat = _destination_base.clone( | ||
enableStatistics = untracked.bool(False), | ||
resetStatistics = untracked.bool(False) | ||
) | ||
|
||
_file_destination = optional.untracked.PSetTemplate( | ||
noLineBreaks = optional.untracked.bool, | ||
noTimeStamps = optional.untracked.bool, | ||
lineLength = optional.untracked.int32, | ||
threshold = optional.untracked.string, | ||
statisticsThreshold = optional.untracked.string, | ||
enableStatistics = untracked.bool(False), | ||
resetStatistics = untracked.bool(False), | ||
filename = optional.untracked.string, | ||
extension = optional.untracked.string, | ||
output = optional.untracked.string, | ||
allowAnyLabel_ = _category | ||
) | ||
|
||
_default_pset = untracked.PSet( | ||
reportEvery = untracked.int32(1), | ||
limit = optional.untracked.int32, | ||
timespan = optional.untracked.int32, | ||
|
||
noLineBreaks = untracked.bool(False), | ||
noTimeStamps = untracked.bool(False), | ||
lineLength = untracked.int32(80), | ||
threshold = untracked.string("INFO"), | ||
statisticsThreshold = untracked.string("INFO"), | ||
allowAnyLabel_ = _category | ||
) | ||
|
||
|
||
MessageLogger = Service("MessageLogger", | ||
suppressWarning = untracked.vstring(), | ||
suppressFwkInfo = untracked.vstring(), | ||
suppressInfo = untracked.vstring(), | ||
suppressDebug = untracked.vstring(), | ||
debugModules = untracked.vstring(), | ||
cout = _destination_no_stat.clone( | ||
enable = untracked.bool(False) | ||
), | ||
default = _default_pset.clone(), | ||
cerr = _destination_base.clone( | ||
enable = untracked.bool(True), | ||
enableStatistics = untracked.bool(True), | ||
resetStatistics = untracked.bool(False), | ||
statisticsThreshold = untracked.string('WARNING'), | ||
INFO = untracked.PSet( | ||
limit = untracked.int32(0) | ||
), | ||
noTimeStamps = untracked.bool(False), | ||
FwkReport = untracked.PSet( | ||
reportEvery = untracked.int32(1), | ||
limit = untracked.int32(10000000) | ||
), | ||
default = untracked.PSet( | ||
limit = untracked.int32(10000000) | ||
), | ||
Root_NoDictionary = untracked.PSet( | ||
limit = untracked.int32(0) | ||
), | ||
FwkSummary = untracked.PSet( | ||
reportEvery = untracked.int32(1), | ||
limit = untracked.int32(10000000) | ||
), | ||
threshold = untracked.string('INFO') | ||
), | ||
files = untracked.PSet( | ||
allowAnyLabel_ = _file_destination | ||
), | ||
allowAnyLabel_ = _category | ||
) | ||
|
||
|
Oops, something went wrong.