#include <ELdestination.h>
Classes | |
struct | Category |
struct | CategoryParams |
struct | Config |
class | MsgFormatSettings |
class | MsgStatistics |
struct | StatsCount |
struct | XidLimiter |
Public Types | |
enum | flag_enum { NO_LINE_BREAKS, TIMESTAMP, MILLISECOND, MODULE, SUBROUTINE, TEXT, SOME_CONTEXT, SERIAL, FULL_CONTEXT, TIME_SEPARATE, EPILOGUE_SEPARATE, NFLAGS } |
Public Member Functions | |
virtual | ~ELdestination () noexcept=default |
ELdestination (Config const &) | |
ELdestination (ELdestination const &)=delete | |
ELdestination (ELdestination &&)=delete | |
ELdestination & | operator= (ELdestination const &)=delete |
ELdestination & | operator= (ELdestination &&)=delete |
void | setThreshold (ELseverityLevel sv) |
virtual void | log (mf::ErrorObj &) |
virtual void | finish () |
virtual void | summary () |
Protected Member Functions | |
std::string | summarizeContext (std::string const &) |
void | emitToken (std::ostream &os, std::string const &s, bool nl=false, bool preambleMode=false) |
std::string | formSummary () |
bool | skipMsg (ELextendedID const &) |
void | resetLimiters () |
void | resetMsgCounters () |
virtual void | fillPrefix (std::ostringstream &, mf::ErrorObj const &msg) |
virtual void | fillUsrMsg (std::ostringstream &, mf::ErrorObj const &msg) |
virtual void | fillSuffix (std::ostringstream &, mf::ErrorObj const &msg) |
virtual void | routePayload (std::ostringstream const &, mf::ErrorObj const &msg) |
virtual void | flush () |
Protected Attributes | |
ELseverityLevel | threshold_ |
MsgFormatSettings | format_ |
int | defaultLimit_ |
int | defaultReportEvery_ |
int | defaultTimespan_ |
std::map< std::string const, CategoryParams > | categoryParams_ |
std::map< ELextendedID const, XidLimiter > | xidLimiters_ |
std::map< ELextendedID const, StatsCount > | statsMap_ |
bool | outputStatistics_ {false} |
bool | updatedStats_ {false} |
bool | reset_ {false} |
Private Attributes | |
std::size_t | charsOnLine_ {} |
Definition at line 24 of file ELdestination.h.
Enumerator | |
---|---|
NO_LINE_BREAKS | |
TIMESTAMP | |
MILLISECOND | |
MODULE | |
SUBROUTINE | |
TEXT | |
SOME_CONTEXT | |
SERIAL | |
FULL_CONTEXT | |
TIME_SEPARATE | |
EPILOGUE_SEPARATE | |
NFLAGS |
Definition at line 26 of file ELdestination.h.
|
virtualdefaultnoexcept |
mf::service::ELdestination::ELdestination | ( | Config const & | pset | ) |
Definition at line 272 of file ELdestination.cc.
|
delete |
|
delete |
|
protected |
Definition at line 388 of file ELdestination.cc.
|
protectedvirtual |
Reimplemented in mfplugins::ELsyslog.
Definition at line 442 of file ELdestination.cc.
|
protectedvirtual |
Reimplemented in mfplugins::ELsyslog.
Definition at line 532 of file ELdestination.cc.
|
protectedvirtual |
Reimplemented in mfplugins::ELsyslog.
Definition at line 505 of file ELdestination.cc.
|
virtual |
Definition at line 701 of file ELdestination.cc.
|
protectedvirtual |
Definition at line 713 of file ELdestination.cc.
|
protected |
Definition at line 574 of file ELdestination.cc.
|
virtual |
Reimplemented in mf::service::ELstatistics.
Definition at line 545 of file ELdestination.cc.
|
delete |
|
delete |
|
protected |
Definition at line 817 of file ELdestination.cc.
|
protected |
Definition at line 811 of file ELdestination.cc.
|
protectedvirtual |
Reimplemented in mfplugins::ELsyslog, and mf::service::ELostreamOutput.
Definition at line 541 of file ELdestination.cc.
void mf::service::ELdestination::setThreshold | ( | ELseverityLevel | sv | ) |
Definition at line 707 of file ELdestination.cc.
|
protected |
Definition at line 724 of file ELdestination.cc.
|
protected |
Definition at line 358 of file ELdestination.cc.
|
virtual |
Reimplemented in mf::service::ELstatistics.
Definition at line 684 of file ELdestination.cc.
|
protected |
Definition at line 229 of file ELdestination.h.
|
private |
Definition at line 237 of file ELdestination.h.
|
protected |
Definition at line 226 of file ELdestination.h.
|
protected |
Definition at line 227 of file ELdestination.h.
|
protected |
Definition at line 228 of file ELdestination.h.
|
protected |
Definition at line 225 of file ELdestination.h.
|
protected |
Definition at line 232 of file ELdestination.h.
|
protected |
Definition at line 234 of file ELdestination.h.
|
protected |
Definition at line 231 of file ELdestination.h.
|
protected |
Definition at line 224 of file ELdestination.h.
|
protected |
Definition at line 233 of file ELdestination.h.
|
protected |
Definition at line 230 of file ELdestination.h.