|
Leosac
0.7.0
OpenSourceAccessControl
|
A log entry. More...
#include <LogEntry.hpp>
Collaboration diagram for Leosac::Tools::LogEntry:Classes | |
| struct | QueryResult |
Structure holding the result for a retrieve() call. More... | |
Public Member Functions | |
| LogEntry () | |
Static Public Member Functions | |
| static QueryResult | retrieve (DBPtr database, int page_number, int page_size, bool order_asc) |
Public Attributes | |
| unsigned long | id_ |
| boost::posix_time::ptime | timestamp_ |
| std::string | msg_ |
| std::string | run_id_ |
| The run_id is generated when Leosac starts, and it is used to identify "runs" (ie if Leosac restarts) in order to better tracks logs. More... | |
| uint8_t | level_ |
| size_t | thread_id_ |
Private Attributes | |
| const size_t | version_ |
Friends | |
| class | odb::access |
A log entry.
This class is decorated to be ODB friendly. Object of this type will be stored in a SQL database.
The class also provide an API via static method to retrieve entries from an underlying database.
Definition at line 40 of file LogEntry.hpp.
| LogEntry::LogEntry | ( | ) |
Definition at line 32 of file LogEntry.cpp.
|
static |
Definition at line 61 of file LogEntry.cpp.
|
friend |
Definition at line 85 of file LogEntry.hpp.
| unsigned long Leosac::Tools::LogEntry::id_ |
Definition at line 46 of file LogEntry.hpp.
| uint8_t Leosac::Tools::LogEntry::level_ |
Definition at line 63 of file LogEntry.hpp.
| std::string Leosac::Tools::LogEntry::msg_ |
Definition at line 52 of file LogEntry.hpp.
| std::string Leosac::Tools::LogEntry::run_id_ |
The run_id is generated when Leosac starts, and it is used to identify "runs" (ie if Leosac restarts) in order to better tracks logs.
Definition at line 60 of file LogEntry.hpp.
| size_t Leosac::Tools::LogEntry::thread_id_ |
Definition at line 66 of file LogEntry.hpp.
| boost::posix_time::ptime Leosac::Tools::LogEntry::timestamp_ |
Definition at line 49 of file LogEntry.hpp.
|
private |
Definition at line 88 of file LogEntry.hpp.