16 StandAloneScribe() =
default;
17 StandAloneScribe(StandAloneScribe
const&) =
delete;
18 StandAloneScribe& operator=(StandAloneScribe
const&) =
delete;
20 void runCommand(
OpCode opcode,
void* operand)
override;
24 StandAloneScribe::runCommand(
OpCode const opcode,
void*
const operand)
31 errorobj_p->
xid().
id())) {
36 std::cerr << errorobj_p->
fullText() << std::endl;
39 << errorobj_p->
xid().
id() <<
": \n" 41 <<
"%MSG" << std::endl;
51 std::unique_ptr<StandAloneScribe>
52 obtainStandAloneScribePtr()
54 static auto standAloneScribe_ptr = std::make_unique<StandAloneScribe>();
55 return std::move(standAloneScribe_ptr);
61 obtainStandAloneScribePtr();
73 mlscribe_ptr = obtainStandAloneScribePtr();
75 mlscribe_ptr = std::move(m);
82 mlscribe_ptr->runCommand(opcode, operand);
89 mlscribe_ptr->runCommand(opcode, operand);
93 "Exception from MessageLoggerQ::" + commandMnemonic,
106 simpleCommand(
SHUT_UP,
nullptr);
139 threshold = severity;
145 squelchSet.insert(category);
152 if (severity < threshold)
154 if (squelchSet.count(category) > 0)
162 mlscribe_ptr->setApplication(application);
168 mlscribe_ptr->setHostName(hostName);
174 mlscribe_ptr->setHostAddr(hostAddr);
180 mlscribe_ptr->setPID(pid);
ELextendedID const & xid() const
static void MLqLOG(ErrorObj *p)
static bool ignore(mf::ELseverityLevel severity, std::string const &category)
static void handshakedCommand(service::OpCode opcode, void *operand, std::string const &commandMnemonic)
std::string fullText() const
static void simpleCommand(service::OpCode opcode, void *operand)
static void setPID(long PID)
cet::coded_exception< errors::error, detail::translate > Exception
std::string getSymbol() const
ELseverityLevel severity() const
static MessageLoggerQ * instance()
static mf::ELseverityLevel threshold
static void setMLscribe_ptr(std::unique_ptr< mf::service::AbstractMLscribe > m)
std::string const & id() const
static std::set< std::string > squelchSet
static void setApplication(std::string const &application)
static void MLqCFG(Config *p)
static void squelch(std::string const &category)
static void setHostAddr(std::string const &addr)
static std::unique_ptr< mf::service::AbstractMLscribe > mlscribe_ptr
static void standAloneThreshold(mf::ELseverityLevel severity)
static void setHostName(std::string const &name)