ork::FileLogger Class Reference
[core]

A Logger that logs messages to an html file. More...

#include <FileLogger.h>

Inheritance diagram for ork::FileLogger:
ork::Logger ork::Object

List of all members.

Classes

class  File
 A file for use by a FileLogger. More...

Public Member Functions

 FileLogger (const string &type, File *out, ptr< Logger > next=NULL)
 Creates a new FileLogger.
virtual ~FileLogger ()
 Destroys this logger.
virtual void log (const string &topic, const string &msg)
 Writes the given message to the file used by this logger.
virtual void flush ()
 Flushes the buffer of the file used by this logger.

Protected Attributes

Fileout
 The File to which this logger logs its messages.
ptr< Loggernext
 The logger to which messages are forwarded after logging by this logger.

Detailed Description

A Logger that logs messages to an html file.

This logger removes duplicated messages when the same messages are logged at each frame, in order to avoid very big log files.


Constructor & Destructor Documentation

ork::FileLogger::FileLogger ( const string &  type,
File out,
ptr< Logger next = NULL 
)

Creates a new FileLogger.

Parameters:
type the type of this logger.
out the File to which messages must be logged.
next the logger to which messages must be forwarded after logging by this logger.
virtual ork::FileLogger::~FileLogger (  )  [virtual]

Destroys this logger.


Member Function Documentation

virtual void ork::FileLogger::flush (  )  [virtual]

Flushes the buffer of the file used by this logger.

Reimplemented from ork::Logger.

virtual void ork::FileLogger::log ( const string &  topic,
const string &  msg 
) [virtual]

Writes the given message to the file used by this logger.

Reimplemented from ork::Logger.


Member Data Documentation

The logger to which messages are forwarded after logging by this logger.

File* ork::FileLogger::out [protected]

The File to which this logger logs its messages.


Generated on Mon Oct 18 09:36:07 2010 for ork by  doxygen 1.6.1