Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

logstream Class Reference

Class to manage the debug logging stream. More...

#include <LogStream.h>

Inheritance diagram for logstream:

logstream_base ostream List of all members.

Public Methods

 logstream (std::ostream &out_)
 The default is to send messages to cerr.

 ~logstream ()
void _close ()
void setOutput (std::ostream &out_)
 Set the output stream.

void setOutput (std::string const &fn)
 Set the output stream.

void setLogLevels (int c, int p)
 Set the global log class and priority level.

void setLogClasses (int c)
 Set the global log class.

std::ostream & operator<< (const loglevel &l)
 Output operator to capture the debug level and priority of a message.


Detailed Description

Class to manage the debug logging stream.


Constructor & Destructor Documentation

logstream::logstream std::ostream &    out_ [inline]
 

The default is to send messages to cerr.

Parameters:
out_  output stream

logstream::~logstream   [inline]
 


Member Function Documentation

void logstream::_close   [inline]
 

std::ostream & logstream::operator<< const loglevel   l [inline]
 

Output operator to capture the debug level and priority of a message.

Parameters:
l  log level

void logstream::setLogClasses int    c
 

Set the global log class.

Parameters:
c  debug class

void logstream::setLogLevels int    c,
int    p
 

Set the global log class and priority level.

Parameters:
c  debug class
p  priority

void logstream::setOutput std::string const &    fn [inline]
 

Set the output stream.

Parameters:
fn  output file path

void logstream::setOutput std::ostream &    out_ [inline]
 

Set the output stream.

Parameters:
out_  output stream


The documentation for this class was generated from the following files:
SimData version pre-0.4.0. For more information on SimData, visit the SimData Homepage.

Generated on Tue Oct 14 12:06:41 2003, using Doxygen 1.2.18.

[SF.net]