A Logger that logs messages to an html file. More...
#include <FileLogger.h>
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 | |
File * | out |
The File to which this logger logs its messages. | |
ptr< Logger > | next |
The logger to which messages are forwarded after logging by this logger. |
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.
Creates a new FileLogger.
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.
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.
ptr<Logger> ork::FileLogger::next [protected] |
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.