#include <ThreadSafeLogMessageLoggerScribe.h>
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 | |
typedef ParameterSet | PSet |
typedef std::string | String |
typedef std::vector< String > | vString |
Private Member Functions | |
void | configure_dest (std::shared_ptr< ELdestination > dest_ctrl, String const &filename) |
void | configure_errorlog () |
void | configure_ordinary_destinations () |
void | configure_statistics () |
template<class T > | |
T | getAparameter (PSet const &p, std::string const &id, T const &def) |
void | log (ErrorObj *errorobj_p) |
void | parseCategories (std::string const &s, std::vector< std::string > &cats) |
void | triggerFJRmessageSummary (std::map< std::string, double > &sm) |
void | triggerStatisticsSummaries () |
Private Attributes | |
bool | active |
edm::propagate_const< std::shared_ptr< ELadministrator > > | admin_p |
bool | clean_slate_configuration |
std::atomic< int > | count |
std::shared_ptr< ELdestination > | early_dest |
std::vector< edm::propagate_const< std::shared_ptr< std::ofstream > > > | file_ps |
edm::propagate_const< std::shared_ptr< PSet > > | job_pset_p |
std::atomic< bool > | m_messageBeingSent |
std::atomic< unsigned long > | m_tooManyWaitingMessagesCount |
tbb::concurrent_queue< ErrorObj * > | m_waitingMessages |
size_t | m_waitingThreshold |
value_ptr< MessageLoggerDefaults > | messageLoggerDefaults |
std::vector< String > | ordinary_destination_filenames |
std::atomic< bool > | purge_mode |
std::vector< std::shared_ptr< ELstatistics > > | statisticsDestControls |
std::vector< bool > | statisticsResets |
std::map< String, edm::propagate_const< std::ostream * > > | stream_ps |
Definition at line 38 of file ThreadSafeLogMessageLoggerScribe.h.
|
private |
Definition at line 57 of file ThreadSafeLogMessageLoggerScribe.h.
|
private |
Definition at line 55 of file ThreadSafeLogMessageLoggerScribe.h.
|
private |
Definition at line 56 of file ThreadSafeLogMessageLoggerScribe.h.
|
explicit |
— If queue is NULL, this sets singleThread true
Definition at line 38 of file ThreadSafeLogMessageLoggerScribe.cc.
|
override |
Definition at line 53 of file ThreadSafeLogMessageLoggerScribe.cc.
References admin_p, myMessageLogger_cff::categories, edm::ELextendedID::id, m_waitingMessages, parseCategories(), purge_mode, edm::ErrorObj::setID(), and edm::ErrorObj::xid().
|
private |
Definition at line 219 of file ThreadSafeLogMessageLoggerScribe.cc.
References myMessageLogger_cff::categories, taus_updatedMVAIds_cff::category, edm::copy_all(), edm::MessageDrop::debugAlwaysSuppressed, hltLogMonitorFilter_cfi::default_threshold, edm::ELseverityLevel::ELsev_info, edm::ELseverityLevel::ELsev_success, edm::ELseverityLevel::ELsev_warning, corrVsCorr::filename, edm::MessageDrop::infoAlwaysSuppressed, readEcalDQMStatus::interval, job_pset_p, remoteMonitoring_LED_IterMethod_cfg::limit, messageLoggerDefaults, hlt_jetmet_dqm_QT_fromfile_cfg::noLineBreaks, HLT_2018_cff::severity, AlCaHLTBitMon_QueryRunRegistry::string, and edm::MessageDrop::warningAlwaysSuppressed.
Referenced by configure_ordinary_destinations(), and configure_statistics().
|
private |
Definition at line 193 of file ThreadSafeLogMessageLoggerScribe.cc.
References clean_slate_configuration, configure_ordinary_destinations(), configure_statistics(), early_dest, job_pset_p, m_waitingThreshold, and stream_ps.
Referenced by runCommand().
|
private |
Definition at line 434 of file ThreadSafeLogMessageLoggerScribe.cc.
References admin_p, beam_dqm_sourceclient-live_cfg::cerr, clean_slate_configuration, configure_dest(), gather_cfg::cout, edm::MessageDrop::debugAlwaysSuppressed, myMessageLogger_cff::destinations, early_dest, edm::ELhighestSeverity, edm::ELzeroSeverity, file_ps, corrVsCorr::filename, edm::MessageDrop::infoAlwaysSuppressed, job_pset_p, messageLoggerDefaults, ordinary_destination_filenames, stream_ps, AlCaHLTBitMon_QueryRunRegistry::string, and edm::MessageDrop::warningAlwaysSuppressed.
Referenced by configure_errorlog().
|
private |
Definition at line 553 of file ThreadSafeLogMessageLoggerScribe.cc.
References admin_p, beam_dqm_sourceclient-live_cfg::cerr, clean_slate_configuration, edm::errors::Configuration, configure_dest(), gather_cfg::cout, myMessageLogger_cff::destinations, Exception, file_ps, corrVsCorr::filename, job_pset_p, messageLoggerDefaults, ordinary_destination_filenames, reset(), edm::search_all(), hgcalPlots::stat, myMessageLogger_cff::statistics, statisticsDestControls, statisticsResets, stream_ps, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by configure_errorlog().
|
inlineprivate |
Definition at line 73 of file ThreadSafeLogMessageLoggerScribe.h.
References spu::def(), AlCaHLTBitMon_ParallelJobs::p, and OrderedSet::t.
|
private |
Definition at line 161 of file ThreadSafeLogMessageLoggerScribe.cc.
References admin_p, myMessageLogger_cff::categories, edm::ELextendedID::id, m_messageBeingSent, m_tooManyWaitingMessagesCount, m_waitingMessages, m_waitingThreshold, getGTfromDQMFile::obj, parseCategories(), purge_mode, edm::ErrorObj::setID(), and edm::ErrorObj::xid().
Referenced by runCommand().
|
private |
Definition at line 681 of file ThreadSafeLogMessageLoggerScribe.cc.
References mps_fire::i, dqmiolumiharvest::j, and alignCSCRings::s.
Referenced by log(), and ~ThreadSafeLogMessageLoggerScribe().
|
overridevirtual |
Reimplemented from edm::service::AbstractMLscribe.
Definition at line 72 of file ThreadSafeLogMessageLoggerScribe.cc.
References active, cms::cuda::assert(), beam_dqm_sourceclient-live_cfg::cerr, edm::MessageLoggerQ::CONFIGURE, configure_errorlog(), count, MillePedeFileConverter_cfg::e, edm::MessageLoggerQ::END_THREAD, edm::MessageLoggerQ::FJR_SUMMARY, edm::MessageLoggerQ::FLUSH_LOG_Q, edm::MessageLoggerQ::GROUP_STATS, job_pset_p, edm::MessageLoggerQ::JOBMODE, log(), edm::MessageLoggerQ::LOG_A_MESSAGE, messageLoggerDefaults, edm::service::MessageLoggerDefaults::mode(), edm::service::ELstatistics::noteGroupedCategory(), purge_mode, edm::MessageLoggerQ::SHUT_UP, AlCaHLTBitMon_QueryRunRegistry::string, edm::MessageLoggerQ::SUMMARIZE, triggerFJRmessageSummary(), and triggerStatisticsSummaries().
|
private |
Definition at line 705 of file ThreadSafeLogMessageLoggerScribe.cc.
References statisticsDestControls.
Referenced by runCommand().
|
private |
Definition at line 696 of file ThreadSafeLogMessageLoggerScribe.cc.
References cms::cuda::assert(), mps_fire::i, m_tooManyWaitingMessagesCount, statisticsDestControls, and statisticsResets.
Referenced by runCommand().
|
private |
Definition at line 103 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by runCommand().
|
private |
Definition at line 93 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by configure_ordinary_destinations(), configure_statistics(), log(), and ~ThreadSafeLogMessageLoggerScribe().
|
private |
Definition at line 101 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by configure_errorlog(), configure_ordinary_destinations(), and configure_statistics().
|
private |
|
private |
Definition at line 94 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by configure_errorlog(), and configure_ordinary_destinations().
|
private |
Definition at line 95 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by configure_ordinary_destinations(), and configure_statistics().
|
private |
Definition at line 96 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by configure_dest(), configure_errorlog(), configure_ordinary_destinations(), configure_statistics(), and runCommand().
|
private |
Definition at line 106 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by log().
|
private |
Definition at line 109 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by log(), and triggerStatisticsSummaries().
|
private |
Definition at line 107 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by log(), and ~ThreadSafeLogMessageLoggerScribe().
|
private |
Definition at line 108 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by configure_errorlog(), and log().
|
private |
Definition at line 102 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by configure_dest(), configure_ordinary_destinations(), configure_statistics(), and runCommand().
|
private |
Definition at line 98 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by configure_ordinary_destinations(), and configure_statistics().
|
private |
Definition at line 104 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by log(), runCommand(), and ~ThreadSafeLogMessageLoggerScribe().
|
private |
Definition at line 99 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by configure_statistics(), triggerFJRmessageSummary(), and triggerStatisticsSummaries().
|
private |
Definition at line 100 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by configure_statistics(), and triggerStatisticsSummaries().
|
private |
Definition at line 97 of file ThreadSafeLogMessageLoggerScribe.h.
Referenced by configure_errorlog(), configure_ordinary_destinations(), and configure_statistics().