![]() |
XRootD
|
#include <XrdSsiLogger.hh>
Public Types | |
typedef void() | MCB_t(struct timeval const &mtime, unsigned long tID, const char *msg, int mlen) |
Length of message text. More... | |
enum | mcbType { mcbAll =0 , mcbClient , mcbServer } |
Public Member Functions | |
XrdSsiLogger () | |
Constructor and destructor. More... | |
~XrdSsiLogger () | |
Static Public Member Functions | |
static void | Msg (const char *pfx, const char *txt1, const char *txt2=0, const char *txt3=0) |
static void | Msgf (const char *pfx, const char *fmt,...) |
static void | Msgv (const char *pfx, const char *fmt, va_list aP) |
static void | Msgv (struct iovec *iovP, int iovN) |
static bool | SetMCB (MCB_t &mcbP, mcbType mcbt=mcbAll) |
static const char * | TBeg () |
static void | TEnd () |
Definition at line 40 of file XrdSsiLogger.hh.
typedef void() XrdSsiLogger::MCB_t(struct timeval const &mtime, unsigned long tID, const char *msg, int mlen) |
Length of message text.
Set a message callback function for messages issued via this object. This method should be called during static initialization (this means the call needs to occur at global scope).
mCB | Reference to the message callback function as defined by the typedef MCB_t. |
mcbt | Specifies the type of callback being set, as follows: mcbAll - callback for client-side and server-side logging. mcbClient - Callback for client-side logging. mcbServer - Callback for server-side logging. |
Definition at line 111 of file XrdSsiLogger.hh.
|
inline |
|
inline |
Definition at line 138 of file XrdSsiLogger.hh.
|
static |
Insert a space delimited error message into the log file.
pfx | !0 -> the text to prefix the message; the message is formed as <timestamp> pfx: txt1 [txt2] [txt3] pfx =0 -> add message to the log without a time stamp or prefix. |
txt1,txt2,txt3 | the message to be added to the log. |
Definition at line 119 of file XrdSsiLogger.cc.
References XrdSysError::Emsg(), XrdSsi::Log, and XrdSysError::Say().
|
static |
Insert a formated error message into the log file using variable args.
pfx | !0 -> the text to prefix the message; the message is formed as <timestamp> <pfx>: <formated_text> pfx =0 -> add message to the log without a time stamp or prefix. |
fmt | the message formatting template (i.e. sprintf format). Note that a newline character is always appended to the message. |
... | the arguments that should be used with the template. The formatted message is truncated at 2048 bytes. |
Definition at line 139 of file XrdSsiLogger.cc.
References XrdSysError::Emsg(), XrdSsi::Log, and XrdSysError::Say().
|
static |
Insert a formated error message into the log file using a va_list.
pfx | !0 -> the text to prefix the message; the message is formed as <timestamp> <pfx>: <formated_text> pfx =0 -> add message to the log without a time stamp or prefix. |
fmt | the message formatting template (i.e. sprintf format). Note that a newline character is always appended to the message. |
aP | the arguments that should be used with the template. The formatted message is truncated at 2048 bytes. |
Definition at line 159 of file XrdSsiLogger.cc.
References XrdSysError::Emsg(), XrdSsi::Log, and XrdSysError::Say().
|
static |
Insert a formated error message into the log file using a iovec.
iovP | pointer to an iovec that contains the message. that a newline character is always appended to the message. |
iovN | the number of elements in the iovec. |
Definition at line 175 of file XrdSsiLogger.cc.
References XrdSsi::Logger, and XrdSysLogger::Put().
|
static |
Definition at line 184 of file XrdSsiLogger.cc.
References XrdCl::DefaultEnv::GetLog(), XrdSsi::msgCB, XrdSsi::msgCBCl, and XrdCl::Log::SetOutput().
|
static |
Definition at line 210 of file XrdSsiLogger.cc.
References XrdSsi::Logger, and XrdSysLogger::traceBeg().
|
static |
Definition at line 216 of file XrdSsiLogger.cc.
References XrdSsi::Logger, and XrdSysLogger::traceEnd().