OpenGUI::Log Class Reference

#include <OpenGUI_LogSystem.h>

List of all members.


Detailed Description

A log represents a categorization type for messages. Each log is given its own logLevel setting, in addition to the setLevel of the LogManager.


Public Member Functions

void setLevel (unsigned int newLogLevel)
 Sets the log level. Messages with a higher value than the current logLevel are not logged.
void write (const String &message, unsigned int logLevel)
 Write a message to this log.
LogMessage & write (unsigned int logLevel)
 Used for << notation.

Static Public Member Functions

static LogMessage & endlog (LogMessage &in)
 Writes a LogMessage to the Log. This is also a stream manipulator for LogMessage.

Protected Member Functions

 Log (LogManager *parent, const String &name)
 Protected constructor. Logs are created only by the LogManager.


Constructor & Destructor Documentation

OpenGUI::Log::Log LogManager parent,
const String name
[protected]
 

Protected constructor. Logs are created only by the LogManager.


Member Function Documentation

LogMessage & OpenGUI::Log::endlog LogMessage &  in  )  [static]
 

Writes a LogMessage to the Log. This is also a stream manipulator for LogMessage.

void OpenGUI::Log::setLevel unsigned int  newLogLevel  ) 
 

Sets the log level. Messages with a higher value than the current logLevel are not logged.

LogMessage & OpenGUI::Log::write unsigned int  logLevel  ) 
 

Used for << notation.

void OpenGUI::Log::write const String message,
unsigned int  logLevel
 

Write a message to this log.


The documentation for this class was generated from the following files:
Copyright © 2006 OpenGUI | OpenGUI.SF.net
Generated: Sun Sep 9 02:00:21 2007