A custom sink that write LogEntry object to a SQLite database.
More...
#include <DatabaseLogSink.hpp>
A custom sink that write LogEntry object to a SQLite database.
Definition at line 33 of file DatabaseLogSink.hpp.
◆ DatabaseLogSink()
DatabaseLogSink::DatabaseLogSink |
( |
DBPtr |
database | ) |
|
Construct a SQLite backed log sink.
- Parameters
-
database | A non null pointer to a ODB database object. |
Definition at line 31 of file DatabaseLogSink.cpp.
◆ flush()
virtual void Leosac::Tools::DatabaseLogSink::flush |
( |
| ) |
|
|
inlineoverridevirtual |
◆ log()
void DatabaseLogSink::log |
( |
const spdlog::details::log_msg & |
msg | ) |
|
|
overridevirtual |
◆ database_
DBPtr Leosac::Tools::DatabaseLogSink::database_ |
|
private |
◆ run_id_
std::string Leosac::Tools::DatabaseLogSink::run_id_ |
|
private |
The documentation for this class was generated from the following files: