Thorin 1.9.0
The Higher ORder INtermediate representation
Loading...
Searching...
No Matches
log.h File Reference
#include <ostream>
#include <rang.hpp>
#include "thorin/flags.h"
#include "thorin/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  thorin::Log
 Facility to log what you are doing. More...
 

Namespaces

namespace  thorin
 

Macros

Logging Macros

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

See also
Formatted Output
#define ELOG(...)   log().log(thorin::Log::Level::Error, __FILE__, __LINE__, __VA_ARGS__)
 
#define WLOG(...)   log().log(thorin::Log::Level::Warn, __FILE__, __LINE__, __VA_ARGS__)
 
#define ILOG(...)   log().log(thorin::Log::Level::Info, __FILE__, __LINE__, __VA_ARGS__)
 
#define VLOG(...)   log().log(thorin::Log::Level::Verbose, __FILE__, __LINE__, __VA_ARGS__)
 
#define DLOG(...)   log().log(thorin::Log::Level::Debug, __FILE__, __LINE__, __VA_ARGS__)
 Vaporizes to nothingness in Debug build.
 

Macro Definition Documentation

◆ DLOG

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

Vaporizes to nothingness in Debug build.

Definition at line 90 of file log.h.

◆ ELOG

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

Definition at line 84 of file log.h.

◆ ILOG

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

Definition at line 86 of file log.h.

◆ VLOG

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

Definition at line 87 of file log.h.

◆ WLOG

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

Definition at line 85 of file log.h.