MySQL 5.6.14 Source Code Document
|
#include <ConsoleLogHandler.hpp>
Public Member Functions | |
ConsoleLogHandler (NdbOut &out=ndbout) | |
virtual | ~ConsoleLogHandler () |
virtual bool | open () |
virtual bool | close () |
virtual bool | is_open () |
virtual bool | setParam (const BaseString ¶m, const BaseString &value) |
Public Member Functions inherited from LogHandler | |
LogHandler () | |
virtual | ~LogHandler () |
virtual const char * | handler_type () |
void | append (const char *pCategory, Logger::LoggerLevel level, const char *pMsg) |
void | append_impl (const char *pCategory, Logger::LoggerLevel level, const char *pMsg) |
const char * | getDefaultHeader (char *pStr, const char *pCategory, Logger::LoggerLevel level) const |
const char * | getDefaultFooter () const |
const char * | getDateTimeFormat () const |
void | setDateTimeFormat (const char *pFormat) |
int | getErrorCode () const |
void | setErrorCode (int code) |
char * | getErrorStr () |
void | setErrorStr (const char *str) |
bool | parseParams (const BaseString ¶ms) |
virtual bool | checkParams () |
virtual void | setRepeatFrequency (unsigned val) |
virtual bool | getParams (BaseString &config) |
virtual off_t | getCurrentSize () |
virtual off_t | getMaxSize () |
Protected Member Functions | |
virtual void | writeHeader (const char *pCategory, Logger::LoggerLevel level) |
virtual void | writeMessage (const char *pMsg) |
virtual void | writeFooter () |
Protected Member Functions inherited from LogHandler | |
STATIC_CONST (MAX_DATE_TIME_HEADER_LENGTH=64) | |
STATIC_CONST (MAX_HEADER_LENGTH=128) | |
STATIC_CONST (MAX_FOOTER_LENGTH=128) |
Protected Attributes | |
NdbOut & | _out |
Logs messages to the console/stdout.
Definition at line 31 of file ConsoleLogHandler.hpp.
ConsoleLogHandler::ConsoleLogHandler | ( | NdbOut & | out = ndbout | ) |
Default constructor.
Definition at line 21 of file ConsoleLogHandler.cpp.
|
virtual |
Destructor.
Definition at line 26 of file ConsoleLogHandler.cpp.
|
virtual |
Closes/free any allocated resources used by the log handler.
Implements LogHandler.
Definition at line 38 of file ConsoleLogHandler.cpp.
|
virtual |
Check if LogHandler is open
Implements LogHandler.
Definition at line 44 of file ConsoleLogHandler.cpp.
|
virtual |
Opens/initializes the log handler.
Implements LogHandler.
Definition at line 32 of file ConsoleLogHandler.cpp.
|
virtual |
Sets a parameters. What parameters are accepted depends on the subclass.
param | name of parameter |
value | value of parameter |
Implements LogHandler.
Definition at line 73 of file ConsoleLogHandler.cpp.
|
protectedvirtual |
Write the footer to the log.
Implements LogHandler.
Definition at line 66 of file ConsoleLogHandler.cpp.
|
protectedvirtual |
Write the header to the log.
pCategory | the category to tag the log with. |
level | the log level. |
Implements LogHandler.
Definition at line 53 of file ConsoleLogHandler.cpp.
|
protectedvirtual |
Write the message to the log.
pMsg | the message to log. |
Implements LogHandler.
Definition at line 60 of file ConsoleLogHandler.cpp.