TPProto::Logger Class Reference

The logging base class. More...

#include <logger.h>

Inheritance diagram for TPProto::Logger:
TPProto::SilentLogger

List of all members.

Public Member Functions

virtual ~Logger ()
 Required virtual destructor.
virtual void error (const char *mesg,...)=0
 Log an error message.
virtual void warning (const char *mesg,...)=0
 Log a warning message.
virtual void info (const char *mesg,...)=0
 Log an info message.
virtual void debug (const char *mesg,...)=0
 Log a debug message.

Detailed Description

The logging base class.

The Logger class is used by the library to write information back to the client. It can be specialised for any application.


Member Function Documentation

virtual void TPProto::Logger::debug ( const char *  mesg,
  ... 
) [pure virtual]
virtual void TPProto::Logger::error ( const char *  mesg,
  ... 
) [pure virtual]

Log an error message.

Takes a format string and args.

Parameters:
mesg Message format string.

Implemented in TPProto::SilentLogger.

Referenced by TPProto::GameLayer::connect(), TPProto::AdminLayer::connect(), TPProto::GameLayer::createAccount(), and TPProto::AdminLayerAsyncFrameListener::recvLogMessage().

virtual void TPProto::Logger::info ( const char *  mesg,
  ... 
) [pure virtual]

Log an info message.

Takes a format string and args.

Parameters:
mesg Message format string.

Implemented in TPProto::SilentLogger.

Referenced by TPProto::GameLayer::disconnect(), TPProto::AdminLayer::disconnect(), and TPProto::AdminLayerAsyncFrameListener::recvLogMessage().

virtual void TPProto::Logger::warning ( const char *  mesg,
  ... 
) [pure virtual]

Log a warning message.

Takes a format string and args.

Parameters:
mesg Message format string.

Implemented in TPProto::SilentLogger.

Referenced by TPProto::GameLayer::connect(), TPProto::AdminLayer::connect(), TPProto::FrameCodec::receivedFrame(), and TPProto::AdminLayerAsyncFrameListener::recvLogMessage().


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

Generated on Wed Mar 10 15:30:05 2010 for libtpproto-cpp by  doxygen 1.6.1