Public Member Functions | Static Public Attributes | Private Attributes
youbot::Logger Class Reference

#include <Logger.hpp>

List of all members.

Public Member Functions

 Logger (const std::string &funcName, const int &lineNo, const std::string &fileName, severity_level level)
template<class T >
Loggeroperator<< (const T &v)
 ~Logger ()

Static Public Attributes

static severity_level logginLevel = info
static bool toConsole = true
static bool toFile = false
static bool toROS = false

Private Attributes

severity_level level
std::stringstream out
bool print

Detailed Description

Implementation logging to console and to a file

Definition at line 74 of file Logger.hpp.


Constructor & Destructor Documentation

youbot::Logger::Logger ( const std::string &  funcName,
const int &  lineNo,
const std::string &  fileName,
severity_level  level 
)

Definition at line 62 of file Logger.cpp.

Definition at line 118 of file Logger.cpp.


Member Function Documentation

template<class T >
Logger& youbot::Logger::operator<< ( const T &  v) [inline]

Definition at line 91 of file Logger.hpp.


Member Data Documentation

Definition at line 79 of file Logger.hpp.

Definition at line 88 of file Logger.hpp.

std::stringstream youbot::Logger::out [private]

Definition at line 77 of file Logger.hpp.

bool youbot::Logger::print [private]

Definition at line 78 of file Logger.hpp.

bool youbot::Logger::toConsole = true [static]

Definition at line 85 of file Logger.hpp.

bool youbot::Logger::toFile = false [static]

Definition at line 86 of file Logger.hpp.

bool youbot::Logger::toROS = false [static]

Definition at line 87 of file Logger.hpp.


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


youbot_driver
Author(s): Jan Paulus
autogenerated on Mon Oct 6 2014 09:08:04