Yet Another Game Engine
|
#include <logger.h>
Public Member Functions | |
Logger () | |
Logger (std::string const &file_path) | |
Logger (LogLevel min_level) | |
Logger (LogLevel min_level, std::string const &file_path) | |
LogMessage | operator() (LogLevel level=LogLevel::INFO, std::string const &fileName="", int lineNum=-1) |
void | flush (LogMessage const *msg) |
void | add (LogSink const &sink) |
void | remove (LogSink const &sink) |
void | clear () |
void | setLevel (LogLevel min_level) |
Static Public Member Functions | |
static Logger & | instance () |
yage::Logger::Logger | ( | ) |
|
explicit |
|
explicit |
yage::Logger::Logger | ( | LogLevel | min_level, |
std::string const & | file_path | ||
) |
void yage::Logger::add | ( | LogSink const & | sink | ) |
void yage::Logger::clear | ( | ) |
void yage::Logger::flush | ( | LogMessage const * | msg | ) |
|
static |
LogMessage yage::Logger::operator() | ( | LogLevel | level = LogLevel::INFO , |
std::string const & | fileName = "" , |
||
int | lineNum = -1 |
||
) |
void yage::Logger::remove | ( | LogSink const & | sink | ) |
void yage::Logger::setLevel | ( | LogLevel | min_level | ) |