MimIR 0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
log.h File Reference
#include <ostream>
#include <rang.hpp>
#include "mim/flags.h"
#include "mim/util/dbg.h"
Include dependency graph for log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  mim::Log
 Facility to log what you are doing. More...
 

Namespaces

namespace  mim
 

Macros

Logging Macros

Macros for different mim::Log::Levels for ease of use.

See also
Formatted Output
#define ELOG(...)
 
#define WLOG(...)
 
#define ILOG(...)
 
#define VLOG(...)
 
#define DLOG(...)
 Vaporizes to nothingness in Debug build.
 

Macro Definition Documentation

◆ DLOG

#define DLOG ( ...)
Value:
log().log(mim::Log::Level::Debug, __FILE__, __LINE__, __VA_ARGS__)

Vaporizes to nothingness in Debug build.

Definition at line 93 of file log.h.

Referenced by mim::World::app().

◆ ELOG

#define ELOG ( ...)
Value:
log().log(mim::Log::Level::Error, __FILE__, __LINE__, __VA_ARGS__)

Definition at line 87 of file log.h.

◆ ILOG

#define ILOG ( ...)
Value:
log().log(mim::Log::Level::Info, __FILE__, __LINE__, __VA_ARGS__)

Definition at line 89 of file log.h.

Referenced by mim::Driver::load().

◆ VLOG

#define VLOG ( ...)
Value:
log().log(mim::Log::Level::Verbose, __FILE__, __LINE__, __VA_ARGS__)

Definition at line 90 of file log.h.

◆ WLOG

#define WLOG ( ...)
Value:
log().log(mim::Log::Level::Warn, __FILE__, __LINE__, __VA_ARGS__)

Definition at line 88 of file log.h.

Referenced by mim::World::extract(), and mim::Driver::load().