1 #ifndef FWCore_MessageService_ThreadSafeLogMessageLoggerScribe_h 2 #define FWCore_MessageService_ThreadSafeLogMessageLoggerScribe_h 22 #include "oneapi/tbb/concurrent_queue.h" 35 class ELadministrator;
90 std::vector<std::string>
const& destination_names);
100 std::shared_ptr<ELdestination> dest_ctrl,
108 t =
p.template getUntrackedParameter<T>(
id,
def);
111 t =
p.template getParameter<T>(
id);
130 std::vector<edm::propagate_const<std::shared_ptr<std::ofstream>>>
m_file_ps;
131 std::map<std::string, edm::propagate_const<std::ostream*>>
m_stream_ps;
149 #endif // FWCore_MessageService_ThreadSafeLogMessageLoggerScribe_h
int def(FILE *, FILE *, int)
void runCommand(MessageLoggerQ::OpCode opcode, void *operand) override
bool m_clean_slate_configuration
std::atomic< bool > m_purge_mode
std::string destinationFileName(edm::ParameterSet const &, std::string const &) const
void configure_errorlog_new(edm::ParameterSet &)
void validate(edm::ParameterSet &) const
void triggerStatisticsSummaries()
void triggerFJRmessageSummary(std::map< std::string, double > &sm)
static constexpr int COMMON_DEFAULT_TIMESPAN
std::atomic< int > m_count
std::vector< edm::propagate_const< std::shared_ptr< std::ofstream > > > m_file_ps
size_t m_waitingThreshold
oneapi::tbb::concurrent_queue< ErrorObj * > m_waitingMessages
ThreadSafeLogMessageLoggerScribe()
— If queue is NULL, this sets singleThread true
static ConfigurableDefaults parseDefaults(edm::ParameterSet const &job_pset)
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::atomic< bool > m_messageBeingSent
static constexpr int COMMON_DEFAULT_LIMIT
std::atomic< unsigned long > m_tooManyWaitingMessagesCount
std::map< std::string, edm::propagate_const< std::ostream * > > m_stream_ps
edm::propagate_const< std::shared_ptr< ELadministrator > > m_admin_p
std::vector< std::shared_ptr< ELstatistics > > m_statisticsDestControls
std::vector< bool > m_statisticsResets
static constexpr int COMMON_DEFAULT_INTERVAL
value_ptr< MessageLoggerDefaults > m_messageLoggerDefaults
static constexpr int NO_VALUE_SET
std::vector< std::string > configure_ordinary_destinations(edm::ParameterSet const &, ConfigurableDefaults const &defaults, vString const &categories)
void log(ErrorObj *errorobj_p)
void parseCategories(std::string const &s, std::vector< std::string > &cats)
void configure_statistics(edm::ParameterSet const &, ConfigurableDefaults const &defaults, vString const &categories, std::vector< std::string > const &destination_names)
static T getAparameter(edm::ParameterSet const &p, std::string const &id, T const &def)
std::vector< std::string > vString
std::shared_ptr< ELdestination > makeDestinationCtrl(std::string const &filename)
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)
std::shared_ptr< ELdestination > m_early_dest
void configure_errorlog(edm::ParameterSet &)
~ThreadSafeLogMessageLoggerScribe() override