|
Leosac
0.8.0
Open Source Access Control
|
Go to the documentation of this file.
24 #include "tools/LogEntry_odb.h"
34 std::cout <<
"ENABLING SQL DATABASE LOGGER." << std::endl;
45 entry.
msg_ = msg.formatted.str();
53 using namespace odb::core;
59 catch (
const odb::exception &e)
61 std::cerr <<
"DatabaseLogSink encountered odb::exception: " << e.what()
boost::posix_time::ptime time_point_ptime(const std::chrono::time_point< std::chrono::system_clock, Duration > &from)
#define ASSERT_LOG(cond, msg)
std::shared_ptr< odb::database > DBPtr
Provide ODB magic to be able to store an Leosac::Audit::EventType (FlagSet) object.
This is the header file for a generated source file, GitSHA1.cpp.
void commit()
Commit the transaction.
Acts like an odb::transaction, with the exception that it will becomes the active transaction at cons...
boost::posix_time::ptime timestamp_
std::string run_id_
The run_id is generated when Leosac starts, and it is used to identify "runs" (ie if Leosac restarts)...
std::string gen_uuid()
Generate a new UUID.