MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ConsoleLogHandler Class Reference

#include <ConsoleLogHandler.hpp>

Inheritance diagram for ConsoleLogHandler:
Collaboration diagram for ConsoleLogHandler:

Public Member Functions

 ConsoleLogHandler (NdbOut &out=ndbout)
virtual ~ConsoleLogHandler ()
virtual bool open ()
virtual bool close ()
virtual bool is_open ()
virtual bool setParam (const BaseString &param, 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 &params)
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

Detailed Description

Logs messages to the console/stdout.

See Also
LogHandler
Version
#@
Id:
ConsoleLogHandler.hpp,v 1.2 2003/09/01 10:15:53 innpeno Exp

Definition at line 31 of file ConsoleLogHandler.hpp.

Constructor & Destructor Documentation

ConsoleLogHandler::ConsoleLogHandler ( NdbOut &  out = ndbout)

Default constructor.

Definition at line 21 of file ConsoleLogHandler.cpp.

ConsoleLogHandler::~ConsoleLogHandler ( )
virtual

Destructor.

Definition at line 26 of file ConsoleLogHandler.cpp.

Member Function Documentation

bool ConsoleLogHandler::close ( )
virtual

Closes/free any allocated resources used by the log handler.

Returns
true if successful.

Implements LogHandler.

Definition at line 38 of file ConsoleLogHandler.cpp.

bool ConsoleLogHandler::is_open ( )
virtual

Check if LogHandler is open

Returns
true if open.

Implements LogHandler.

Definition at line 44 of file ConsoleLogHandler.cpp.

bool ConsoleLogHandler::open ( )
virtual

Opens/initializes the log handler.

Returns
true if successful.

Implements LogHandler.

Definition at line 32 of file ConsoleLogHandler.cpp.

bool ConsoleLogHandler::setParam ( const BaseString param,
const BaseString value 
)
virtual

Sets a parameters. What parameters are accepted depends on the subclass.

Parameters
paramname of parameter
valuevalue of parameter

Implements LogHandler.

Definition at line 73 of file ConsoleLogHandler.cpp.

void ConsoleLogHandler::writeFooter ( )
protectedvirtual

Write the footer to the log.

Implements LogHandler.

Definition at line 66 of file ConsoleLogHandler.cpp.

Here is the call graph for this function:

void ConsoleLogHandler::writeHeader ( const char *  category,
Logger::LoggerLevel  level 
)
protectedvirtual

Write the header to the log.

Parameters
pCategorythe category to tag the log with.
levelthe log level.

Implements LogHandler.

Definition at line 53 of file ConsoleLogHandler.cpp.

Here is the call graph for this function:

void ConsoleLogHandler::writeMessage ( const char *  pMsg)
protectedvirtual

Write the message to the log.

Parameters
pMsgthe message to log.

Implements LogHandler.

Definition at line 60 of file ConsoleLogHandler.cpp.


The documentation for this class was generated from the following files: