![]() |
0.4.1
|
Utility class for logging. More...
Public Member Functions | |
Logger () | |
Default constructor. | |
Logger (const Logger &)=delete | |
Copy constructor. | |
Logger (const std::string &logpath) | |
Constructor. | |
Logger (Logger &&)=default | |
Move constructor. | |
Logger & | operator= (const Logger &)=delete |
Copy assignment operator. | |
Logger & | operator= (Logger &&)=default |
Move assignment operator. | |
~Logger () | |
Destructor. | |
Static Public Member Functions | |
static const std::shared_ptr< spdlog::sinks::ringbuffer_sink_mt > & | GetRingBufferSink () |
Returns the ring buffer sink. | |
Static Private Member Functions | |
static void | writeFooter () noexcept |
Writes the logging footer. | |
static void | writeHeader () noexcept |
Writes the logging header. | |
static void | writeSeparator () noexcept |
Writes a separation line to the console only. | |
Static Private Attributes | |
static std::shared_ptr< spdlog::sinks::ringbuffer_sink_mt > | _ringBufferSink |
Ring buffer sink. | |
Utility class for logging.
Use the Macros to do logging, as they can be turned off during compilation
Definition at line 87 of file Logger.hpp.
|
explicit |
Constructor.
[in] | logpath | Relative filepath to the logfile |
Definition at line 56 of file Logger.cpp.
Logger::Logger | ( | ) |
Default constructor.
Definition at line 149 of file Logger.cpp.
Logger::~Logger | ( | ) |
Destructor.
Definition at line 174 of file Logger.cpp.
|
delete |
Copy constructor.
|
default |
Move constructor.
|
static |
Returns the ring buffer sink.
Definition at line 181 of file Logger.cpp.
|
staticprivatenoexcept |
Writes the logging footer.
Definition at line 206 of file Logger.cpp.
|
staticprivatenoexcept |
Writes the logging header.
Definition at line 191 of file Logger.cpp.
|
staticprivatenoexcept |
Writes a separation line to the console only.
Definition at line 186 of file Logger.cpp.
|
inlinestaticprivate |
Ring buffer sink.
Definition at line 112 of file Logger.hpp.