logstream Class Reference

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

#include <logstream.hxx>

Inheritance diagram for logstream:
logstream_base

List of all members.

Public Member Functions

 logstream (std::ostream &out)
 The default is to send messages to cerr.
void set_output (std::ostream &out)
 Set the output stream.
void setLogLevels (sgDebugClass c, sgDebugPriority p)
 Set the global log class and priority level.
std::ostream & operator<< (const loglevel &l)
 Output operator to capture the debug level and priority of a message.

Friends

logstreamsglog ()

Detailed Description

Class to manage the debug logging stream.

Definition at line 227 of file logstream.hxx.


Constructor & Destructor Documentation

logstream::logstream ( std::ostream &  out  )  [inline]

The default is to send messages to cerr.

Parameters:
out output stream

Definition at line 234 of file logstream.hxx.


Member Function Documentation

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

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

Parameters:
l log level

Definition at line 269 of file logstream.hxx.

void logstream::set_output ( std::ostream &  out  )  [inline]

Set the output stream.

Parameters:
out output stream

Definition at line 243 of file logstream.hxx.

void logstream::setLogLevels ( sgDebugClass  c,
sgDebugPriority  p 
)

Set the global log class and priority level.

Parameters:
c debug class
p priority

Definition at line 101 of file logstream.cxx.


Friends And Related Function Documentation

logstream & sglog (  )  [friend]

Return the one and only logstream instance. We use a function instead of a global object so we are assured that cerr has been initialised.

Returns:
current logstream

Definition at line 283 of file logstream.hxx.


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

Generated on 23 Feb 2010 for SimGear by  doxygen 1.6.1