Yet Another Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Macros | Enumerations | Functions
logger.h File Reference


-*- c++ -*- More...

#include "../util/active.h"
#include <memory>
#include <sstream>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

class  yage::LogMessage
 
struct  yage::LogMessage::Meta
 
class  yage::LogSink
 
class  yage::Logger
 

Namespaces

 yage
 Project namespace.
 

Macros

#define yLogger   (yage::Logger::instance())
 
#define yLogDebug   (yage::Logger::instance()(yage::LogLevel::DEBUG, __FILE__, __LINE__))
 
#define yLogInfo   (yage::Logger::instance()(yage::LogLevel::INFO, __FILE__, __LINE__))
 
#define yLogWarning   (yage::Logger::instance()(yage::LogLevel::WARNING, __FILE__, __LINE__))
 
#define yLogError   (yage::Logger::instance()(yage::LogLevel::ERROR, __FILE__, __LINE__))
 
#define yLogFatal   (yage::Logger::instance()(yage::LogLevel::FATAL, __FILE__, __LINE__))
 

Enumerations

enum  yage::LogLevel {
  yage::LogLevel::DEBUG, yage::LogLevel::INFO, yage::LogLevel::WARNING, yage::LogLevel::ERROR,
  yage::LogLevel::FATAL
}
 Different log levels that can be assigned to each message sent to the Logger. More...
 

Functions

LogSink yage::makeConsoleSink ()
 
LogSink yage::makeFileSink (std::string const &filename)
 
LogSink yage::makeFileSink (std::string &&filename)
 

Detailed Description


-*- c++ -*-

Copyright (c) 2017 Yann Herklotz Grave ymher.nosp@m.klot.nosp@m.z@gma.nosp@m.il.c.nosp@m.om

MIT License, see LICENSE file for more details.

Macro Definition Documentation

#define yLogDebug   (yage::Logger::instance()(yage::LogLevel::DEBUG, __FILE__, __LINE__))
#define yLogError   (yage::Logger::instance()(yage::LogLevel::ERROR, __FILE__, __LINE__))
#define yLogFatal   (yage::Logger::instance()(yage::LogLevel::FATAL, __FILE__, __LINE__))
#define yLogger   (yage::Logger::instance())
#define yLogInfo   (yage::Logger::instance()(yage::LogLevel::INFO, __FILE__, __LINE__))
#define yLogWarning   (yage::Logger::instance()(yage::LogLevel::WARNING, __FILE__, __LINE__))