7 #include <sqlite_orm/sqlite_orm.h>
8 #include <tgbotxx/utils/DateTimeUtils.hpp>
9 #include <tgbotxx/utils/FileUtils.hpp>
10 #include <source_location>
22 std::uint_least32_t
line{};
27 using namespace sqlite_orm;
28 return make_table(
"Logs",
29 make_column(
"id", &
Log::id, primary_key().autoincrement()),
43 Log(
const std::string &sev,
const std::string &shortMsg,
const std::string &longMsg =
"",
const std::source_location& here = std::source_location::current()) {
56 std::ostringstream oss{};
Log(const std::string &sev, const std::string &shortMsg, const std::string &longMsg="", const std::source_location &here=std::source_location::current())
std::uint_least32_t column
std::string toString() const noexcept