CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Types | Private Member Functions | Private Attributes
edm::service::ThreadSafeLogMessageLoggerScribe Class Reference

#include <ThreadSafeLogMessageLoggerScribe.h>

Inheritance diagram for edm::service::ThreadSafeLogMessageLoggerScribe:
edm::service::AbstractMLscribe

Public Member Functions

virtual void runCommand (MessageLoggerQ::OpCode opcode, void *operand)
 
 ThreadSafeLogMessageLoggerScribe ()
 — If queue is NULL, this sets singleThread true More...
 
virtual ~ThreadSafeLogMessageLoggerScribe ()
 
- Public Member Functions inherited from edm::service::AbstractMLscribe
 AbstractMLscribe ()
 
virtual ~AbstractMLscribe ()
 

Private Types

typedef ParameterSet PSet
 
typedef std::string String
 
typedef std::vector< StringvString
 

Private Member Functions

void configure_dest (ELdestControl &dest_ctrl, String const &filename)
 
void configure_errorlog ()
 
void configure_external_dests ()
 
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
 
ELdestControl early_dest
 
std::vector< NamedDestination * > extern_dests
 
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
 
tbb::concurrent_queue< ErrorObj * > m_waitingMessages
 
value_ptr< MessageLoggerDefaultsmessageLoggerDefaults
 
std::vector< Stringordinary_destination_filenames
 
std::atomic< bool > purge_mode
 
std::vector< ELdestControlstatisticsDestControls
 
std::vector< bool > statisticsResets
 
std::map< String,
edm::propagate_const
< std::ostream * > > 
stream_ps
 

Detailed Description

Definition at line 38 of file ThreadSafeLogMessageLoggerScribe.h.

Member Typedef Documentation

Definition at line 58 of file ThreadSafeLogMessageLoggerScribe.h.

Definition at line 56 of file ThreadSafeLogMessageLoggerScribe.h.

Definition at line 57 of file ThreadSafeLogMessageLoggerScribe.h.

Constructor & Destructor Documentation

edm::service::ThreadSafeLogMessageLoggerScribe::ThreadSafeLogMessageLoggerScribe ( )
explicit

— If queue is NULL, this sets singleThread true

Definition at line 40 of file ThreadSafeLogMessageLoggerScribe.cc.

edm::service::ThreadSafeLogMessageLoggerScribe::~ThreadSafeLogMessageLoggerScribe ( )
virtual

Definition at line 54 of file ThreadSafeLogMessageLoggerScribe.cc.

Member Function Documentation

void edm::service::ThreadSafeLogMessageLoggerScribe::configure_dest ( ELdestControl dest_ctrl,
String const &  filename 
)
private

Definition at line 267 of file ThreadSafeLogMessageLoggerScribe.cc.

void edm::service::ThreadSafeLogMessageLoggerScribe::configure_errorlog ( )
private

Definition at line 232 of file ThreadSafeLogMessageLoggerScribe.cc.

void edm::service::ThreadSafeLogMessageLoggerScribe::configure_external_dests ( )
private

Definition at line 781 of file ThreadSafeLogMessageLoggerScribe.cc.

void edm::service::ThreadSafeLogMessageLoggerScribe::configure_ordinary_destinations ( )
private

Definition at line 508 of file ThreadSafeLogMessageLoggerScribe.cc.

void edm::service::ThreadSafeLogMessageLoggerScribe::configure_statistics ( )
private

Definition at line 640 of file ThreadSafeLogMessageLoggerScribe.cc.

template<class T >
T edm::service::ThreadSafeLogMessageLoggerScribe::getAparameter ( PSet const &  p,
std::string const &  id,
T const &  def 
)
inlineprivate

Definition at line 77 of file ThreadSafeLogMessageLoggerScribe.h.

References def, and lumiQTWidget::t.

78  {
79  T t = def;
80  try {
81  t = p.template getUntrackedParameter<T>(id, def);
82  } catch (...) {
83  try {
84  t = p.template getParameter<T>(id);
85  } catch (...) {
86  // Since PSetValidation will catch such errors, we simply proceed as
87  // best we can in case we are setting up the logger just to contain the
88  // validation-caught error messages.
89  }
90  }
91  return t;
92  }
long double T
JetCorrectorParameters::Definitions def
Definition: classes.h:6
void edm::service::ThreadSafeLogMessageLoggerScribe::log ( ErrorObj errorobj_p)
private

Definition at line 203 of file ThreadSafeLogMessageLoggerScribe.cc.

void edm::service::ThreadSafeLogMessageLoggerScribe::parseCategories ( std::string const &  s,
std::vector< std::string > &  cats 
)
private

Definition at line 804 of file ThreadSafeLogMessageLoggerScribe.cc.

void edm::service::ThreadSafeLogMessageLoggerScribe::runCommand ( MessageLoggerQ::OpCode  opcode,
void *  operand 
)
virtual

Reimplemented from edm::service::AbstractMLscribe.

Definition at line 76 of file ThreadSafeLogMessageLoggerScribe.cc.

void edm::service::ThreadSafeLogMessageLoggerScribe::triggerFJRmessageSummary ( std::map< std::string, double > &  sm)
private

Definition at line 831 of file ThreadSafeLogMessageLoggerScribe.cc.

void edm::service::ThreadSafeLogMessageLoggerScribe::triggerStatisticsSummaries ( )
private

Definition at line 821 of file ThreadSafeLogMessageLoggerScribe.cc.

Member Data Documentation

bool edm::service::ThreadSafeLogMessageLoggerScribe::active
private

Definition at line 109 of file ThreadSafeLogMessageLoggerScribe.h.

edm::propagate_const<std::shared_ptr<ELadministrator> > edm::service::ThreadSafeLogMessageLoggerScribe::admin_p
private

Definition at line 98 of file ThreadSafeLogMessageLoggerScribe.h.

bool edm::service::ThreadSafeLogMessageLoggerScribe::clean_slate_configuration
private

Definition at line 107 of file ThreadSafeLogMessageLoggerScribe.h.

std::atomic<int> edm::service::ThreadSafeLogMessageLoggerScribe::count
private

Definition at line 111 of file ThreadSafeLogMessageLoggerScribe.h.

ELdestControl edm::service::ThreadSafeLogMessageLoggerScribe::early_dest
private

Definition at line 99 of file ThreadSafeLogMessageLoggerScribe.h.

std::vector<NamedDestination *> edm::service::ThreadSafeLogMessageLoggerScribe::extern_dests
private

Definition at line 102 of file ThreadSafeLogMessageLoggerScribe.h.

std::vector<edm::propagate_const<std::shared_ptr<std::ofstream> > > edm::service::ThreadSafeLogMessageLoggerScribe::file_ps
private

Definition at line 100 of file ThreadSafeLogMessageLoggerScribe.h.

edm::propagate_const<std::shared_ptr<PSet> > edm::service::ThreadSafeLogMessageLoggerScribe::job_pset_p
private

Definition at line 101 of file ThreadSafeLogMessageLoggerScribe.h.

std::atomic<bool> edm::service::ThreadSafeLogMessageLoggerScribe::m_messageBeingSent
private

Definition at line 112 of file ThreadSafeLogMessageLoggerScribe.h.

tbb::concurrent_queue<ErrorObj*> edm::service::ThreadSafeLogMessageLoggerScribe::m_waitingMessages
private

Definition at line 113 of file ThreadSafeLogMessageLoggerScribe.h.

value_ptr<MessageLoggerDefaults> edm::service::ThreadSafeLogMessageLoggerScribe::messageLoggerDefaults
private

Definition at line 108 of file ThreadSafeLogMessageLoggerScribe.h.

std::vector<String> edm::service::ThreadSafeLogMessageLoggerScribe::ordinary_destination_filenames
private

Definition at line 104 of file ThreadSafeLogMessageLoggerScribe.h.

std::atomic<bool> edm::service::ThreadSafeLogMessageLoggerScribe::purge_mode
private

Definition at line 110 of file ThreadSafeLogMessageLoggerScribe.h.

std::vector<ELdestControl> edm::service::ThreadSafeLogMessageLoggerScribe::statisticsDestControls
private

Definition at line 105 of file ThreadSafeLogMessageLoggerScribe.h.

std::vector<bool> edm::service::ThreadSafeLogMessageLoggerScribe::statisticsResets
private

Definition at line 106 of file ThreadSafeLogMessageLoggerScribe.h.

std::map<String, edm::propagate_const<std::ostream*> > edm::service::ThreadSafeLogMessageLoggerScribe::stream_ps
private

Definition at line 103 of file ThreadSafeLogMessageLoggerScribe.h.