Classes | Static Public Member Functions | Private Member Functions | Private Attributes
segway::Logger Class Reference

#include <RmpLogger.h>

List of all members.

Classes

struct  Impl

Static Public Member Functions

static void AddLogFile (const std::string &rFileName)
static void AddOutputStream (std::ostream &rOutputStream)
static void Log (LogLevel level, const std::string &rMessage)
static void SetMinLogLevel (LogLevel level)

Private Member Functions

 Logger ()
 Logger (const Logger &)
Loggeroperator= (const Logger &)
 ~Logger ()

Private Attributes

std::unique_ptr< Implm_pImpl

Detailed Description

This class is used for logging.

Definition at line 64 of file RmpLogger.h.


Constructor & Destructor Documentation

segway::Logger::Logger ( ) [private]

All constructors should be private. The user should not be able to create/modify any objects of this class. Default constructor

segway::Logger::Logger ( const Logger ) [private]

Copy constructor

segway::Logger::~Logger ( ) [private]

Destructor


Member Function Documentation

void segway::Logger::AddLogFile ( const std::string &  rFileName) [static]

Create a file for logging.

Parameters:
rFileNamefile name

Definition at line 87 of file RmpLogger.cpp.

void segway::Logger::AddOutputStream ( std::ostream &  rOutputStream) [static]

Add an output stream to log to, such as std::cout, std::cerr...

Parameters:
rOutputStreamoutput stream

Definition at line 80 of file RmpLogger.cpp.

void segway::Logger::Log ( LogLevel  level,
const std::string &  rMessage 
) [static]

Log a message

Parameters:
levellog level
rMessagelog message

Definition at line 97 of file RmpLogger.cpp.

Logger& segway::Logger::operator= ( const Logger ) [private]

Assignment operator

void segway::Logger::SetMinLogLevel ( LogLevel  level) [static]

Set the minimum severity of the message to be logged.

Parameters:
levelminimum severity level

Definition at line 73 of file RmpLogger.cpp.


Member Data Documentation

std::unique_ptr<Impl> segway::Logger::m_pImpl [private]

Definition at line 122 of file RmpLogger.h.


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


rmp_base
Author(s):
autogenerated on Wed Aug 26 2015 16:24:40