The logging callback that invokes a member function of an object. More...
#include <callbacks.h>
Public Types | |
typedef void(T::* | MemberType )(KuduLogSeverity severity, const char *filename, int line_number, const struct::tm *time, const char *message, size_t message_len) |
A handy typedef for the member function with appropriate signature. | |
Public Member Functions | |
KuduLoggingMemberCallback (T *object, MemberType member) | |
virtual void | Run (KuduLogSeverity severity, const char *filename, int line_number, const struct::tm *time, const char *message, size_t message_len) OVERRIDE |
The logging callback that invokes a member function of an object.
kudu::client::KuduLoggingMemberCallback< T >::KuduLoggingMemberCallback | ( | T * | object, | |
MemberType | member | |||
) | [inline] |
Build an instance of KuduLoggingMemberCallback.
[in] | object | A pointer to the object. |
[in] | member | A pointer to the member function of the object to invoke. |
virtual void kudu::client::KuduLoggingMemberCallback< T >::Run | ( | KuduLogSeverity | severity, | |
const char * | filename, | |||
int | line_number, | |||
const struct::tm * | time, | |||
const char * | message, | |||
size_t | message_len | |||
) | [inline, virtual] |
Log the message.
message
is NOT terminated with an endline.[in] | severity | Severity of the log message. |
[in] | filename | The name of the source file the message is originated from. |
[in] | line_number | The line of the source file the message is originated from. |
[in] | time | The absolute time when the log event was generated. |
[in] | message | The message to log. It's not terminated with an endline. |
[in] | message_len | Number of characters in the message . |
Implements kudu::client::KuduLoggingCallback.