OSB_LIB::ConsoleLog Class Reference

Inheritance diagram for OSB_LIB::ConsoleLog:

Inheritance graph
[legend]
Collaboration diagram for OSB_LIB::ConsoleLog:

Collaboration graph
[legend]
List of all members.

Detailed Description

Default implementation of LogBase.

Definition at line 440 of file osblog.h.

Public Member Functions

Protected Member Functions

Private Member Functions

Private Attributes


Constructor & Destructor Documentation

OSB_LIB::ConsoleLog::ConsoleLog ( int  logLevel  )  [explicit]

Constructor with log level.


Member Function Documentation

virtual void OSB_LIB::ConsoleLog::elog (  )  [virtual]

End a log message with a new-line.

Writes std::endl to it-self.

Implements OSB_LIB::LogBase.

virtual void OSB_LIB::ConsoleLog::endlog (  )  [virtual]

End a log message without a new-line.

This is a NOP.

Implements OSB_LIB::LogBase.

LogBase& OSB_LIB::ConsoleLog::head ( char   )  [virtual]

Begin a new line and fill header: just calls nl().

Implements OSB_LIB::LogBase.

LogBase& OSB_LIB::ConsoleLog::init ( const char *  what  )  [private]

Initialize a log message.

Parameters:
what Header of the message.

LogBase& OSB_LIB::ConsoleLog::nl (  )  [virtual]

Begin a new line.

Writes a "\n" and calls head(' ').

Implements OSB_LIB::LogBase.

std::ostream& OSB_LIB::ConsoleLog::plog (  )  [private, virtual]

Primary log stream.

Returns:
std::cout if useCerr_ is false, else std::cerr.

Implements OSB_LIB::LogBase.

std::ostream* OSB_LIB::ConsoleLog::slog (  )  [private, virtual]

Secondary log stream: always 0.

Implements OSB_LIB::LogBase.

virtual LogBase& OSB_LIB::ConsoleLog::start ( int  level,
bool  noHead 
) [protected, virtual]

Start logging a message.

Parameters:
level Log level of the message.
noHead Flag to suppress message header and indentation.
Sets curLevel_ to level and useCerr_ to true if level is less or equal to 1.

Implements OSB_LIB::LogBase.


Member Data Documentation

bool OSB_LIB::ConsoleLog::useCerr_ [private]

Flag to use std::cerr in plog().

Definition at line 499 of file osblog.h.


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:12:16 2006 for OSB Library by  doxygen 1.4.7