Public Member Functions | Static Public Attributes | Private Attributes | List of all members
youbot::Logger Class Reference

Implementation logging to console and to a file. More...

#include <Logger.hpp>

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 77 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 61 of file Logger.cpp.

youbot::Logger::~Logger ( )

Definition at line 108 of file Logger.cpp.

Member Function Documentation

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

Definition at line 93 of file Logger.hpp.

Member Data Documentation

severity_level youbot::Logger::level
private

Definition at line 81 of file Logger.hpp.

severity_level youbot::Logger::logginLevel = info
static

Definition at line 90 of file Logger.hpp.

std::stringstream youbot::Logger::out
private

Definition at line 79 of file Logger.hpp.

bool youbot::Logger::print
private

Definition at line 80 of file Logger.hpp.

bool youbot::Logger::toConsole = true
static

Definition at line 87 of file Logger.hpp.

bool youbot::Logger::toFile = false
static

Definition at line 88 of file Logger.hpp.

bool youbot::Logger::toROS = false
static

Definition at line 89 of file Logger.hpp.


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


youbot_driver
Author(s): Jan Paulus
autogenerated on Mon Jun 10 2019 15:46:27