#include <ThreadSafeLogMessageLoggerScribe.h>
Classes | |
struct | ConfigurableDefaults |
Public Member Functions | |
void | runCommand (MessageLoggerQ::OpCode opcode, void *operand) override |
ThreadSafeLogMessageLoggerScribe () | |
— If queue is NULL, this sets singleThread true More... | |
~ThreadSafeLogMessageLoggerScribe () override | |
Public Member Functions inherited from edm::service::AbstractMLscribe | |
AbstractMLscribe () | |
virtual | ~AbstractMLscribe () |
Private Types | |
using | vString = std::vector< std::string > |
Private Member Functions | |
void | configure_dest (edm::ParameterSet const &job_pset, ConfigurableDefaults const &, vString const &categories, std::shared_ptr< ELdestination > dest_ctrl, edm::ParameterSet const &dest_pset, std::string const &filename) |
void | configure_errorlog (edm::ParameterSet &) |
void | configure_errorlog_new (edm::ParameterSet &) |
std::vector< std::string > | configure_ordinary_destinations (edm::ParameterSet const &, ConfigurableDefaults const &defaults, vString const &categories) |
void | configure_statistics (edm::ParameterSet const &, ConfigurableDefaults const &defaults, vString const &categories, std::vector< std::string > const &destination_names) |
void | configure_statistics_dest (edm::ParameterSet const &job_pset, ConfigurableDefaults const &defaults, vString const &categories, edm::ParameterSet const &stat_pset, std::string const &psetname, std::string const &filename) |
std::string | destinationFileName (edm::ParameterSet const &, std::string const &) const |
void | log (ErrorObj *errorobj_p) |
std::shared_ptr< ELdestination > | makeDestinationCtrl (std::string const &filename) |
void | parseCategories (std::string const &s, std::vector< std::string > &cats) |
void | triggerFJRmessageSummary (std::map< std::string, double > &sm) |
void | triggerStatisticsSummaries () |
void | validate (edm::ParameterSet &) const |
Static Private Member Functions | |
template<class T > | |
static T | getAparameter (edm::ParameterSet const &p, std::string const &id, T const &def) |
static ConfigurableDefaults | parseDefaults (edm::ParameterSet const &job_pset) |
Private Attributes | |
bool | m_active |
edm::propagate_const< std::shared_ptr< ELadministrator > > | m_admin_p |
bool | m_clean_slate_configuration |
std::atomic< int > | m_count |
std::shared_ptr< ELdestination > | m_early_dest |
std::vector< edm::propagate_const< std::shared_ptr< std::ofstream > > > | m_file_ps |
std::atomic< bool > | m_messageBeingSent |
value_ptr< MessageLoggerDefaults > | m_messageLoggerDefaults |
std::atomic< bool > | m_purge_mode |
std::vector< std::shared_ptr< ELstatistics > > | m_statisticsDestControls |
std::vector< bool > | m_statisticsResets |
std::map< std::string, edm::propagate_const< std::ostream * > > | m_stream_ps |
std::atomic< unsigned long > | m_tooManyWaitingMessagesCount |
tbb::concurrent_queue< ErrorObj * > | m_waitingMessages |
size_t | m_waitingThreshold |
Definition at line 38 of file ThreadSafeLogMessageLoggerScribe.h.
|
private |
Definition at line 72 of file ThreadSafeLogMessageLoggerScribe.h.
|
explicit |
— If queue is NULL, this sets singleThread true
Definition at line 41 of file ThreadSafeLogMessageLoggerScribe.cc.
|
override |
Definition at line 52 of file ThreadSafeLogMessageLoggerScribe.cc.
References myMessageLogger_cff::categories, edm::ELextendedID::id, m_admin_p, m_purge_mode, m_waitingMessages, parseCategories(), edm::ErrorObj::setID(), and edm::ErrorObj::xid().
|
private |
Definition at line 461 of file ThreadSafeLogMessageLoggerScribe.cc.
References myMessageLogger_cff::categories, taus_updatedMVAIds_cff::category, hltLogMonitorFilter_cfi::default_threshold, l1GtPatternGenerator_cfi::defaults, corrVsCorr::filename, readEcalDQMStatus::interval, remoteMonitoring_LED_IterMethod_cfg::limit, m_messageLoggerDefaults, hlt_jetmet_dqm_QT_fromfile_cfg::noLineBreaks, ErrorSummaryFilter_cfi::severity, AlCaHLTBitMon_QueryRunRegistry::string, and MessageLogger_cfi::timespan.
Referenced by configure_errorlog_new(), configure_ordinary_destinations(), and configure_statistics_dest().
|
private |
Definition at line 364 of file ThreadSafeLogMessageLoggerScribe.cc.
References myMessageLogger_cff::categories, configure_errorlog_new(), configure_ordinary_destinations(), configure_statistics(), edm::copy_all(), l1GtPatternGenerator_cfi::defaults, m_clean_slate_configuration, m_early_dest, m_messageLoggerDefaults, m_stream_ps, m_waitingThreshold, parseDefaults(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by runCommand().
|
private |
Definition at line 280 of file ThreadSafeLogMessageLoggerScribe.cc.
References myMessageLogger_cff::categories, configure_dest(), configure_statistics_dest(), edm::MessageDrop::debugAlwaysSuppressed, l1GtPatternGenerator_cfi::defaults, destinationFileName(), edm::ELhighestSeverity, Exception, submitPVResolutionJobs::files, edm::MessageDrop::fwkInfoAlwaysSuppressed, edm::ParameterSet::getUntrackedParameter(), edm::MessageDrop::infoAlwaysSuppressed, m_clean_slate_configuration, m_early_dest, m_stream_ps, m_waitingThreshold, makeDestinationCtrl(), Skims_PA_cff::name, parseDefaults(), AlCaHLTBitMon_QueryRunRegistry::string, and edm::MessageDrop::warningAlwaysSuppressed.
Referenced by configure_errorlog().
|
private |
Definition at line 631 of file ThreadSafeLogMessageLoggerScribe.cc.
References myMessageLogger_cff::categories, configure_dest(), edm::MessageDrop::debugAlwaysSuppressed, l1GtPatternGenerator_cfi::defaults, destinationFileName(), myMessageLogger_cff::destinations, edm::ELhighestSeverity, corrVsCorr::filename, edm::MessageDrop::fwkInfoAlwaysSuppressed, edm::MessageDrop::infoAlwaysSuppressed, m_clean_slate_configuration, m_early_dest, m_messageLoggerDefaults, m_stream_ps, makeDestinationCtrl(), AlCaHLTBitMon_QueryRunRegistry::string, and edm::MessageDrop::warningAlwaysSuppressed.
Referenced by configure_errorlog().
|
private |
Definition at line 742 of file ThreadSafeLogMessageLoggerScribe.cc.
References myMessageLogger_cff::categories, EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, edm::errors::Configuration, configure_statistics_dest(), gather_cfg::cout, l1GtPatternGenerator_cfi::defaults, mps_fire::dest, myMessageLogger_cff::destinations, Exception, corrVsCorr::filename, m_clean_slate_configuration, m_file_ps, m_messageLoggerDefaults, m_stream_ps, edm::search_all(), myMessageLogger_cff::statistics, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by configure_errorlog().
|
private |
Definition at line 708 of file ThreadSafeLogMessageLoggerScribe.cc.
References myMessageLogger_cff::categories, configure_dest(), l1GtPatternGenerator_cfi::defaults, corrVsCorr::filename, m_admin_p, m_statisticsDestControls, m_statisticsResets, m_stream_ps, reset(), edm_modernize_messagelogger::stat, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by configure_errorlog_new(), and configure_statistics().
|
private |
Definition at line 245 of file ThreadSafeLogMessageLoggerScribe.cc.
References corrVsCorr::filename, m_messageLoggerDefaults, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by configure_errorlog_new(), and configure_ordinary_destinations().
|
inlinestaticprivate |
Definition at line 105 of file ThreadSafeLogMessageLoggerScribe.h.
References spu::def(), AlCaHLTBitMon_ParallelJobs::p, and submitPVValidationJobs::t.
|
private |
Definition at line 161 of file ThreadSafeLogMessageLoggerScribe.cc.
References myMessageLogger_cff::categories, edm::ELextendedID::id, m_admin_p, m_messageBeingSent, m_purge_mode, m_tooManyWaitingMessagesCount, m_waitingMessages, m_waitingThreshold, getGTfromDQMFile::obj, parseCategories(), edm::ErrorObj::setID(), and edm::ErrorObj::xid().
Referenced by runCommand().
|
private |
Definition at line 405 of file ThreadSafeLogMessageLoggerScribe.cc.
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, gather_cfg::cout, edm::ELzeroSeverity, corrVsCorr::filename, m_admin_p, m_early_dest, m_file_ps, and m_stream_ps.
Referenced by configure_errorlog_new(), and configure_ordinary_destinations().
|
private |
Definition at line 866 of file ThreadSafeLogMessageLoggerScribe.cc.
References mps_fire::i, dqmiolumiharvest::j, and alignCSCRings::s.
Referenced by log(), and ~ThreadSafeLogMessageLoggerScribe().
|
staticprivate |
Definition at line 440 of file ThreadSafeLogMessageLoggerScribe.cc.
References edm::service::ThreadSafeLogMessageLoggerScribe::ConfigurableDefaults::COMMON_DEFAULT_INTERVAL, edm::service::ThreadSafeLogMessageLoggerScribe::ConfigurableDefaults::COMMON_DEFAULT_LIMIT, edm::service::ThreadSafeLogMessageLoggerScribe::ConfigurableDefaults::COMMON_DEFAULT_TIMESPAN, hltLogMonitorFilter_cfi::default_threshold, edm::service::ThreadSafeLogMessageLoggerScribe::ConfigurableDefaults::limit_, edm::service::ThreadSafeLogMessageLoggerScribe::ConfigurableDefaults::lineLength_, edm::service::ThreadSafeLogMessageLoggerScribe::ConfigurableDefaults::noLineBreaks_, edm::service::ThreadSafeLogMessageLoggerScribe::ConfigurableDefaults::noTimeStamps_, edm::service::ThreadSafeLogMessageLoggerScribe::ConfigurableDefaults::reportEvery_, AlCaHLTBitMon_QueryRunRegistry::string, edm::service::ThreadSafeLogMessageLoggerScribe::ConfigurableDefaults::threshold_, and edm::service::ThreadSafeLogMessageLoggerScribe::ConfigurableDefaults::timespan_.
Referenced by configure_errorlog(), and configure_errorlog_new().
|
overridevirtual |
Reimplemented from edm::service::AbstractMLscribe.
Definition at line 71 of file ThreadSafeLogMessageLoggerScribe.cc.
References cms::cuda::assert(), EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, edm::MessageLoggerQ::CONFIGURE, configure_errorlog(), MillePedeFileConverter_cfg::e, edm::MessageLoggerQ::END_THREAD, edm::MessageLoggerQ::FJR_SUMMARY, edm::MessageLoggerQ::FLUSH_LOG_Q, edm::MessageLoggerQ::GROUP_STATS, edm::MessageLoggerQ::JOBMODE, log(), edm::MessageLoggerQ::LOG_A_MESSAGE, m_active, m_count, m_messageLoggerDefaults, m_purge_mode, edm::service::MessageLoggerDefaults::mode(), edm::service::ELstatistics::noteGroupedCategory(), edm::MessageLoggerQ::SHUT_UP, AlCaHLTBitMon_QueryRunRegistry::string, edm::MessageLoggerQ::SUMMARIZE, triggerFJRmessageSummary(), triggerStatisticsSummaries(), and validate().
|
private |
Definition at line 890 of file ThreadSafeLogMessageLoggerScribe.cc.
References m_statisticsDestControls.
Referenced by runCommand().
|
private |
Definition at line 881 of file ThreadSafeLogMessageLoggerScribe.cc.
References cms::cuda::assert(), mps_fire::i, m_statisticsDestControls, m_statisticsResets, and m_tooManyWaitingMessagesCount.
Referenced by runCommand().
|
private |
Definition at line 980 of file ThreadSafeLogMessageLoggerScribe.cc.
References fillDescriptions(), or, and muonDTDigis_cfi::pset.
Referenced by runCommand().
|
private |
Definition at line 136 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by runCommand().
|
private |
Definition at line 128 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by configure_statistics_dest(), log(), makeDestinationCtrl(), and ~ThreadSafeLogMessageLoggerScribe().
|
private |
Definition at line 134 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by configure_errorlog(), configure_errorlog_new(), configure_ordinary_destinations(), and configure_statistics().
|
private |
Definition at line 138 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by runCommand().
|
private |
Definition at line 129 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by configure_errorlog(), configure_errorlog_new(), configure_ordinary_destinations(), and makeDestinationCtrl().
|
private |
Definition at line 130 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by configure_statistics(), and makeDestinationCtrl().
|
private |
Definition at line 139 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by log().
|
private |
Definition at line 135 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by configure_dest(), configure_errorlog(), configure_ordinary_destinations(), configure_statistics(), destinationFileName(), and runCommand().
|
private |
Definition at line 137 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by log(), runCommand(), and ~ThreadSafeLogMessageLoggerScribe().
|
private |
Definition at line 132 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by configure_statistics_dest(), triggerFJRmessageSummary(), and triggerStatisticsSummaries().
|
private |
Definition at line 133 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by configure_statistics_dest(), and triggerStatisticsSummaries().
|
private |
Definition at line 131 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by configure_errorlog(), configure_errorlog_new(), configure_ordinary_destinations(), configure_statistics(), configure_statistics_dest(), and makeDestinationCtrl().
|
private |
Definition at line 142 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by log(), and triggerStatisticsSummaries().
|
private |
Definition at line 140 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by log(), and ~ThreadSafeLogMessageLoggerScribe().
|
private |
Definition at line 141 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by configure_errorlog(), configure_errorlog_new(), and log().