Lugdunum
0.1.0
|
#include <Logger.hpp>
Public Member Functions | |
Logger (const std::string &loggerName) | |
Logger (const Logger &)=delete | |
Logger (Logger &&)=default | |
Logger & | operator= (const Logger &)=delete |
Logger & | operator= (Logger &&)=default |
~Logger ()=default | |
void | addHandler (Handler *handler) |
void | addHandler (const std::string &name) |
void | defaultErrHandler (const std::string &msg) |
void | defaultErrHandler (const std::exception &ex) |
template<typename T > | |
void | log (Level lvl, const T &msg) |
template<typename... Args, typename T > | |
void | log (Level lvl, const T &fmt, Args &&... args) |
template<typename T , typename... Args> | |
void | debug (const T &fmt, Args &&... args) |
template<typename T , typename... Args> | |
void | info (const T &fmt, Args &&... args) |
template<typename T , typename... Args> | |
void | warn (const T &fmt, Args &&... args) |
template<typename T , typename... Args> | |
void | error (const T &fmt, Args &&... args) |
template<typename T , typename... Args> | |
void | fatal (const T &fmt, Args &&... args) |
template<typename T , typename... Args> | |
void | assrt (const T &fmt, Args &&... args) |
const std::string & | getName () const |
void | handle (priv::Message &msg) |
void | flush () |
template<typename T > | |
void | log (Level lvl, const T &msg) |
template<typename... Args, typename T > | |
void | log (Level lvl, const T &fmt, Args &&... args) |
template<typename T , typename... Args> | |
void | debug (const T &fmt, Args &&... args) |
template<typename T , typename... Args> | |
void | info (const T &fmt, Args &&... args) |
template<typename T , typename... Args> | |
void | warn (const T &fmt, Args &&... args) |
template<typename T , typename... Args> | |
void | error (const T &fmt, Args &&... args) |
template<typename T , typename... Args> | |
void | fatal (const T &fmt, Args &&... args) |
template<typename T , typename... Args> | |
void | assrt (const T &fmt, Args &&... args) |
Static Public Member Functions | |
static Logger & | getInternalLogger () |
Protected Attributes | |
const std::string | _name |
std::set< Handler * > | _handlers |
Definition at line 18 of file Logger.hpp.
|
explicit |
Definition at line 19 of file Logger.cpp.
|
delete |
|
default |
|
default |
void lug::System::Logger::Logger::addHandler | ( | Handler * | handler | ) |
Definition at line 21 of file Logger.cpp.
void lug::System::Logger::Logger::addHandler | ( | const std::string & | name | ) |
Definition at line 25 of file Logger.cpp.
void lug::System::Logger::Logger::defaultErrHandler | ( | const std::string & | msg | ) |
Definition at line 29 of file Logger.cpp.
void lug::System::Logger::Logger::defaultErrHandler | ( | const std::exception & | ex | ) |
Definition at line 33 of file Logger.cpp.
void lug::System::Logger::Logger::log | ( | Level | lvl, |
const T & | msg | ||
) |
void lug::System::Logger::Logger::log | ( | Level | lvl, |
const T & | fmt, | ||
Args &&... | args | ||
) |
void lug::System::Logger::Logger::debug | ( | const T & | fmt, |
Args &&... | args | ||
) |
void lug::System::Logger::Logger::info | ( | const T & | fmt, |
Args &&... | args | ||
) |
void lug::System::Logger::Logger::warn | ( | const T & | fmt, |
Args &&... | args | ||
) |
void lug::System::Logger::Logger::error | ( | const T & | fmt, |
Args &&... | args | ||
) |
void lug::System::Logger::Logger::fatal | ( | const T & | fmt, |
Args &&... | args | ||
) |
void lug::System::Logger::Logger::assrt | ( | const T & | fmt, |
Args &&... | args | ||
) |
const std::string & lug::System::Logger::Logger::getName | ( | ) | const |
Definition at line 37 of file Logger.cpp.
void lug::System::Logger::Logger::handle | ( | priv::Message & | msg | ) |
Definition at line 41 of file Logger.cpp.
void lug::System::Logger::Logger::flush | ( | ) |
Definition at line 50 of file Logger.cpp.
|
static |
Definition at line 56 of file Logger.cpp.
|
inline |
Definition at line 2 of file Logger.inl.
|
inline |
Definition at line 13 of file Logger.inl.
|
inline |
Definition at line 24 of file Logger.inl.
|
inline |
Definition at line 29 of file Logger.inl.
|
inline |
Definition at line 34 of file Logger.inl.
|
inline |
Definition at line 39 of file Logger.inl.
|
inline |
Definition at line 44 of file Logger.inl.
|
inline |
Definition at line 49 of file Logger.inl.
|
protected |
Definition at line 67 of file Logger.hpp.
|
protected |
Definition at line 68 of file Logger.hpp.