head 1.4; access; symbols; locks; strict; comment @# @; 1.4 date 2002.09.07.01.50.37; author curt; state Exp; branches; next 1.3; 1.3 date 2002.08.31.19.01.51; author curt; state Exp; branches; next 1.2; 1.2 date 2002.08.31.18.53.59; author curt; state Exp; branches; next 1.1; 1.1 date 2002.02.15.17.21.55; author curt; state Exp; branches; next ; desc @@ 1.4 log @Updated doxygen docs. @ text @
Main Page Class Hierarchy Compound List File List Compound Members File Members

# logstream Class Reference

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

`#include <logstream.hxx>`

Inheritance diagram for logstream:

List of all members.

## Public Methods
| logstream (ostream &out)
| The default is to send messages to cerr.
void | set_output (ostream &out)
| Set the output stream.
void | setLogLevels (sgDebugClass c, sgDebugPriority p)
| Set the global log class and priority level.
ostream & | operator<< (const loglevel &l)
| Output operator to capture the debug level and priority of a message.
## Related Functions
(Note that these are not member functions.)
logstream & | sglog ()
| Return the one and only logstream instance.

## Detailed Description

Class to manage the debug logging stream.

Definition at line 220 of file logstream.hxx.

## Constructor & Destructor Documentation

logstream::logstream | ( | ostream & | out | ) | `[inline]`

  | The default is to send messages to cerr. Parameters:
  out | output stream
Definition at line 227 of file logstream.hxx. References logbuf::set_sb().

## Member Function Documentation

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 253 of file logstream.hxx. References loglevel::logClass, loglevel::logPriority, and logbuf::set_log_state().

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

  | Set the output stream. Parameters:
  out | output stream
Definition at line 236 of file logstream.hxx. References logbuf::set_sb().

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

  | Set the global log class and priority level. Parameters:
  c | debug class
  p | priority
Definition at line 86 of file logstream.cxx. References logbuf::set_log_level(), sgDebugClass, and sgDebugPriority.

## Friends And Related Function Documentation

logstream & sglog | ( |  | ) | `[related]`

| 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 269 of file logstream.hxx.

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

- logstream.hxx
- logstream.cxx

@ 1.3 log @Oops, try again. @ text @d253 1 a253 1