mermaid::support::logging::LogMessage Class Reference

This class represents a message of the logger. More...

#include <Logger.hpp>

Collaboration diagram for mermaid::support::logging::LogMessage:
Collaboration graph
[legend]

List of all members.

Public Member Functions

const int & getIndentation () const
 Gets the indentation of the message.
const LogLevelgetLogLevel () const
 Gets the LogLevel of the message.
const std::string & getMessage () const
 Gets the message.
const std::string & getPrefix () const
 Gets the prefix of the logger when the message was issued.
const time_t & getTime () const
 Gets the time when the message was issued.
 LogMessage (const LogLevel &logLevel, const time_t &time, const int &indentation, const std::string &prefix, const std::string &message)
 Creates a new LogMessage.

Detailed Description

This class represents a message of the logger.

The LogMessage is sent by the Logger class to the LogOutput(s).

Author:
Joao Reis

Definition at line 211 of file Logger.hpp.


Constructor & Destructor Documentation

mermaid::support::logging::LogMessage::LogMessage ( const LogLevel logLevel,
const time_t &  time,
const int &  indentation,
const std::string &  prefix,
const std::string &  message 
) [inline]

Creates a new LogMessage.

Parameters:
logLevel The level of the message.
time The time when the message was issued.
indentation Indentation level of the message for reporting levels.
prefix The logger prefix when the message was issued.
message The message to log.
Author:
Joao Reis

Definition at line 224 of file Logger.hpp.


Member Function Documentation

const int& mermaid::support::logging::LogMessage::getIndentation (  )  const [inline]

Gets the indentation of the message.

Returns:
The indentation of the message.
Author:
Joao Reis

Definition at line 256 of file Logger.hpp.

const LogLevel& mermaid::support::logging::LogMessage::getLogLevel (  )  const [inline]

Gets the LogLevel of the message.

Returns:
The LogLevel of the message.
Author:
Joao Reis

Definition at line 240 of file Logger.hpp.

const std::string& mermaid::support::logging::LogMessage::getMessage (  )  const [inline]

Gets the message.

Returns:
The actual message.
Author:
Joao Reis

Definition at line 272 of file Logger.hpp.

const std::string& mermaid::support::logging::LogMessage::getPrefix (  )  const [inline]

Gets the prefix of the logger when the message was issued.

Returns:
The prefix of the logger.
Author:
Joao Reis

Definition at line 264 of file Logger.hpp.

const time_t& mermaid::support::logging::LogMessage::getTime (  )  const [inline]

Gets the time when the message was issued.

Returns:
The time when the message was issued.
Author:
Joao Reis

Definition at line 248 of file Logger.hpp.

Generated on Fri Mar 4 22:15:49 2011 for MeRMaID::support by  doxygen 1.6.3