nngn
Loading...
Searching...
No Matches
log.h File Reference
#include <array>
#include <sstream>
#include <string>
#include <tuple>
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  nngn::Log
 
struct  nngn::Log::context
 
class  nngn::Log::replace
 

Namespaces

namespace  nngn
 

Macros

#define NNGN_LOG_CONTEXT(n)   NNGN_LOG_CONTEXT2(n, nullptr)
 
#define NNGN_LOG_CONTEXT_F()   NNGN_LOG_CONTEXT2(__func__, nullptr)
 
#define NNGN_LOG_CONTEXT_CF(c)   NNGN_LOG_CONTEXT2(#c, __func__)
 
#define NNGN_LOG_CONTEXT2(n0, n1)    const auto NNGN_LOG_CONTEXT_VAR(__LINE__) = nngn::Log::context(n0, n1);
 
#define NNGN_LOG_CONTEXT_VAR(l)   NNGN_LOG_CONTEXT_JOIN(lc_, l)
 
#define NNGN_LOG_CONTEXT_JOIN(x, y)   x##y
 

Macro Definition Documentation

◆ NNGN_LOG_CONTEXT

#define NNGN_LOG_CONTEXT ( n)    NNGN_LOG_CONTEXT2(n, nullptr)

◆ NNGN_LOG_CONTEXT2

#define NNGN_LOG_CONTEXT2 ( n0,
n1 )    const auto NNGN_LOG_CONTEXT_VAR(__LINE__) = nngn::Log::context(n0, n1);

◆ NNGN_LOG_CONTEXT_CF

#define NNGN_LOG_CONTEXT_CF ( c)    NNGN_LOG_CONTEXT2(#c, __func__)

◆ NNGN_LOG_CONTEXT_F

#define NNGN_LOG_CONTEXT_F ( )    NNGN_LOG_CONTEXT2(__func__, nullptr)

◆ NNGN_LOG_CONTEXT_JOIN

#define NNGN_LOG_CONTEXT_JOIN ( x,
y )   x##y

◆ NNGN_LOG_CONTEXT_VAR

#define NNGN_LOG_CONTEXT_VAR ( l)    NNGN_LOG_CONTEXT_JOIN(lc_, l)