GitWatcherBot  1.0.0
A Telegram Bot that notifies you when a new change is made in your repositories (issues, pull requests, stars, forks, and watches)
All Classes Namespaces Files Functions Variables Typedefs Macros
models::Log Struct Reference

#include <Log.hpp>

Public Member Functions

 Log ()=default
 
 Log (const std::string &sev, const std::string &shortMsg, const std::string &longMsg="", const std::source_location &here=std::source_location::current())
 
std::string toString () const noexcept
 

Static Public Member Functions

static auto table ()
 

Public Attributes

std::int64_t id {}
 
std::string severity
 
std::string shortMessage
 
std::string longMessage
 
std::time_t timestamp {}
 
std::string filename
 
std::uint_least32_t line {}
 
std::uint_least32_t column {}
 
std::string functionName
 

Detailed Description

Definition at line 14 of file Log.hpp.

Constructor & Destructor Documentation

◆ Log() [1/2]

models::Log::Log ( )
default

◆ Log() [2/2]

models::Log::Log ( const std::string &  sev,
const std::string &  shortMsg,
const std::string &  longMsg = "",
const std::source_location &  here = std::source_location::current() 
)
inline

Definition at line 43 of file Log.hpp.

Member Function Documentation

◆ table()

static auto models::Log::table ( )
inlinestatic

Definition at line 26 of file Log.hpp.

◆ toString()

std::string models::Log::toString ( ) const
inlinenoexcept

Definition at line 55 of file Log.hpp.

Member Data Documentation

◆ column

std::uint_least32_t models::Log::column {}

Definition at line 23 of file Log.hpp.

◆ filename

std::string models::Log::filename

Definition at line 21 of file Log.hpp.

◆ functionName

std::string models::Log::functionName

Definition at line 24 of file Log.hpp.

◆ id

std::int64_t models::Log::id {}

Definition at line 15 of file Log.hpp.

◆ line

std::uint_least32_t models::Log::line {}

Definition at line 22 of file Log.hpp.

◆ longMessage

std::string models::Log::longMessage

Definition at line 18 of file Log.hpp.

◆ severity

std::string models::Log::severity

Definition at line 16 of file Log.hpp.

◆ shortMessage

std::string models::Log::shortMessage

Definition at line 17 of file Log.hpp.

◆ timestamp

std::time_t models::Log::timestamp {}

Definition at line 19 of file Log.hpp.


The documentation for this struct was generated from the following file: