Yet Another Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
yage::Logger Class Reference

#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 Loggerinstance ()
 

Constructor & Destructor Documentation

yage::Logger::Logger ( )
yage::Logger::Logger ( std::string const &  file_path)
explicit
yage::Logger::Logger ( LogLevel  min_level)
explicit
yage::Logger::Logger ( LogLevel  min_level,
std::string const &  file_path 
)

Member Function Documentation

void yage::Logger::add ( LogSink const &  sink)
void yage::Logger::clear ( )
void yage::Logger::flush ( LogMessage const *  msg)
Logger & yage::Logger::instance ( )
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)

The documentation for this class was generated from the following files: