mermaid::support::logging::LogScope Class Reference

LogScope is a helper to use the logger. More...

#include <Logger.hpp>

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

List of all members.

Public Member Functions

 LogScope (shared_ptr< Logger > logger, const std::string &beginMessage, const std::string &endMessage)
 Constructor: Begin and end messages.
 LogScope (shared_ptr< Logger > logger, const std::string &beginMessage)
 Constructor: Only a begin message.
 LogScope (shared_ptr< Logger > logger)
 Constructor: No begin message and empty end message. This is only used to call begin and call end automatically when the object goes out of scope.

Detailed Description

LogScope is a helper to use the logger.

LogScope automatically makes the end level calls within it's destructor.

Author:
Joao Reis

Definition at line 753 of file Logger.hpp.


Constructor & Destructor Documentation

LogScope::LogScope ( shared_ptr< Logger logger  ) 

Constructor: No begin message and empty end message. This is only used to call begin and call end automatically when the object goes out of scope.

Parameters:
logger The logger to use.
Author:
Joao Reis

Definition at line 40 of file LogScope.cpp.

LogScope::LogScope ( shared_ptr< Logger logger,
const std::string &  beginMessage 
)

Constructor: Only a begin message.

Parameters:
logger The logger to use.
beginMessage The message to log with level LOG_BEGIN right away.
Author:
Joao Reis

Definition at line 50 of file LogScope.cpp.

LogScope::LogScope ( shared_ptr< Logger logger,
const std::string &  beginMessage,
const std::string &  endMessage 
)

Constructor: Begin and end messages.

Parameters:
logger The logger to use.
beginMessage The message to log with level LOG_BEGIN right away.
endMessage The message to log with level LOG_END when the class is destroyed.
Author:
Joao Reis

Definition at line 61 of file LogScope.cpp.

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