67 StandAloneScribe(
const StandAloneScribe&) =
delete;
69 const StandAloneScribe& operator=(
const StandAloneScribe&) =
delete;
90 <<
" " << errorobj_p->
xid().
id <<
": \n" 111 std::shared_ptr<StandAloneScribe> obtainStandAloneScribePtr() {
112 static auto standAloneScribe_ptr = std::make_shared<StandAloneScribe>();
113 return standAloneScribe_ptr;
119 std::shared_ptr<edm::service::AbstractMLscribe>
140 (std::shared_ptr<edm::service::AbstractMLscribe>
m)
143 mlscribe_ptr = obtainStandAloneScribePtr();
152 mlscribe_ptr->runCommand(opcode, operand);
162 mlscribe_ptr->runCommand(opcode, operand);
166 ex <<
"\n The preceding exception was thrown in MessageLoggerScribe\n";
167 ex <<
"and forwarded to the main thread from the Messages thread.";
168 std::cerr <<
"exception from MessageLoggerQ::" 169 << commandMnemonic <<
" - exception what() is \n" 179 simpleCommand (END_THREAD, (
void *)
nullptr);
185 simpleCommand (SHUT_UP, (
void *)
nullptr);
191 simpleCommand (LOG_A_MESSAGE, static_cast<void *>(p));
198 handshakedCommand(CONFIGURE, p,
"CFG" );
204 simpleCommand (SUMMARIZE,
nullptr);
210 simpleCommand (JOBMODE, static_cast<void *>(jm));
221 handshakedCommand(FLUSH_LOG_Q,
nullptr,
"FLS" );
227 simpleCommand (GROUP_STATS, static_cast<void *>(cat_p));
233 handshakedCommand(FJR_SUMMARY, sum_p,
"JRS" );
240 return ( (op == CONFIGURE) || (op == FLUSH_LOG_Q) || (op == FJR_SUMMARY) );
250 squelchSet.insert(category);
255 if ( squelchSet.count(category) > 0 )
return true;
static bool handshaked(const OpCode &op)
char const * what() const override
static bool ignore(edm::ELseverityLevel const &severity, std::string const &category)
static void squelch(std::string const &category)
const ELstring getSymbol() const
const ELextendedID & xid() const
static void MLqCFG(ParameterSet *p)
static edm::ELseverityLevel threshold
static MessageLoggerQ * instance()
ELstring fullText() const
static void setMLscribe_ptr(std::shared_ptr< edm::service::AbstractMLscribe > m)
static void handshakedCommand(OpCode opcode, void *operand, std::string const &commandMnemonic)
static void MLqJRS(std::map< std::string, double > *sum_p)
static void MLqMOD(std::string *jm)
static void MLqGRP(std::string *cat_p)
static void MLqLOG(ErrorObj *p)
static std::set< std::string > squelchSet
static void standAloneThreshold(edm::ELseverityLevel const &severity)
static std::shared_ptr< edm::service::AbstractMLscribe > mlscribe_ptr
static void simpleCommand(OpCode opcode, void *operand)