Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | Related Pages

LogFileSink Class Reference

#include <logstream.h>

Inheritance diagram for LogFileSink:

Inheritance graph
[legend]
Collaboration diagram for LogFileSink:

Collaboration graph
[legend]
List of all members.

Detailed Description

File log sink The file sink writes log messages to a file specified or provided to the constructor. Messages are written per-line. For an example, look at the documentation for the logstream.h file.

Author:
Mattias Jansson (mattias@realityrift.com)


Public Member Functions

 LogFileSink (const std::string &rstrFileName)
 LogFileSink (File *pkFile)
virtual ~LogFileSink ()
virtual void Write (const std::string &rstrMsg)
void SetLogThreshold (unsigned int uiLevel)

Protected Attributes

Filem_pkFile
unsigned int m_uiThreshold


Constructor & Destructor Documentation

LogFileSink const std::string &  rstrFileName  ) 
 

Parameters:
rstrFileName Log file name

LogFileSink File pkFile  ) 
 

Parameters:
pkFile Log file object (will be deleted in dtor)

virtual ~LogFileSink  )  [virtual]
 

Close file


Member Function Documentation

virtual void Write const std::string &  rstrMsg  )  [virtual]
 

Write data to stdout

Parameters:
rstrMsg Data to be written

Implements LogSink.

void SetLogThreshold unsigned int  uiLevel  )  [inherited]
 

Set the threshold of loglevel

Parameters:
uiLevel The new loglevel threshold


Member Data Documentation

File* m_pkFile [protected]
 

Log file

unsigned int m_uiThreshold [protected, inherited]
 

Loglevel threshold


The documentation for this class was generated from the following file:
Generated on Wed Jan 21 14:21:11 2004 for NeoEngine by doxygen 1.3.5