Classes | Namespaces | Macros
Logger.h File Reference
#include <memory>
#include <sstream>
#include <schunk_svh_library/LogHandler.h>
#include <schunk_svh_library/LogLevel.h>
Include dependency graph for Logger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  driver_svh::Logger
 Small singleton-based logging class with an exchangeable log handler. More...
 

Namespaces

 driver_svh
 

Macros

#define SVH_LOG_DEBUG_STREAM(NAME, M)
 
#define SVH_LOG_ERROR_STREAM(NAME, M)
 
#define SVH_LOG_FATAL_STREAM(NAME, M)
 
#define SVH_LOG_INFO_STREAM(NAME, M)
 
#define SVH_LOG_WARN_STREAM(NAME, M)
 

Detailed Description

Author
Felix Exner
Date
2022-01-13

Definition in file Logger.h.

Macro Definition Documentation

◆ SVH_LOG_DEBUG_STREAM

#define SVH_LOG_DEBUG_STREAM (   NAME,
 
)
Value:
do \
{ \
std::stringstream ss; \
ss << M; \
Logger::log(__FILE__, __LINE__, NAME, driver_svh::LogLevel::DEBUG, ss.str()); \
} while (false)

Definition at line 39 of file Logger.h.

◆ SVH_LOG_ERROR_STREAM

#define SVH_LOG_ERROR_STREAM (   NAME,
 
)
Value:
do \
{ \
std::stringstream ss; \
ss << M; \
Logger::log(__FILE__, __LINE__, NAME, driver_svh::LogLevel::ERROR, ss.str()); \
} while (false)

Definition at line 60 of file Logger.h.

◆ SVH_LOG_FATAL_STREAM

#define SVH_LOG_FATAL_STREAM (   NAME,
 
)
Value:
do \
{ \
std::stringstream ss; \
ss << M; \
Logger::log(__FILE__, __LINE__, NAME, driver_svh::LogLevel::FATAL, ss.str()); \
} while (false)

Definition at line 67 of file Logger.h.

◆ SVH_LOG_INFO_STREAM

#define SVH_LOG_INFO_STREAM (   NAME,
 
)
Value:
do \
{ \
std::stringstream ss; \
ss << M; \
Logger::log(__FILE__, __LINE__, NAME, driver_svh::LogLevel::INFO, ss.str()); \
} while (false)

Definition at line 46 of file Logger.h.

◆ SVH_LOG_WARN_STREAM

#define SVH_LOG_WARN_STREAM (   NAME,
 
)
Value:
do \
{ \
std::stringstream ss; \
ss << M; \
Logger::log(__FILE__, __LINE__, NAME, driver_svh::LogLevel::WARN, ss.str()); \
} while (false)

Definition at line 53 of file Logger.h.



schunk_svh_library
Author(s): Georg Heppner, Lars Pfotzer, Felix Exner, Johannes Mangler, Stefan Scherzinger, Pascal Becker
autogenerated on Fri Apr 14 2023 02:26:23