DABC (Data Acquisition Backbone Core)  2.9.9
Data Structures | Namespaces | Macros | Functions
logging.h File Reference
#include <cstdio>
#include <cstdint>
#include "dabc/string.h"
#include "dabc/defines.h"

Go to the source code of this file.

Data Structures

class  dabc::Logger
 Logging class. More...
 

Namespaces

 dabc
 Event manipulation API.
 

Macros

#define DBOOL(arg)   (arg ? "true" : "false")
 
#define DEBUGLEVEL   1
 
#define DNAME(arg)   (arg ? arg->GetName() : "---")
 
#define DOUT(level, args ...)    dabc::Logger::Debug(level, __FILE__, __LINE__, __func__, dabc::format( args ).c_str())
 
#define DOUT0(args ...)   DOUT(0, args )
 
#define DOUT1(args ...)   DOUT(1, args )
 
#define DOUT2(args ...)
 
#define DOUT3(args ...)
 
#define DOUT4(args ...)
 
#define DOUT5(args ...)
 
#define EOUT(args ...)   DOUT(-1, args )
 

Functions

Logger * dabc::lgr ()
 
void dabc::SetDebugLevel (int level=0)
 
void dabc::SetDebugPrefix (const char *prefix=0)
 
void dabc::SetFileLevel (int level=0)
 

Macro Definition Documentation

◆ DEBUGLEVEL

#define DEBUGLEVEL   1

Definition at line 32 of file logging.h.

◆ DOUT

#define DOUT (   level,
  args ... 
)     dabc::Logger::Debug(level, __FILE__, __LINE__, __func__, dabc::format( args ).c_str())

Definition at line 146 of file logging.h.

◆ EOUT

#define EOUT (   args ...)    DOUT(-1, args )

Definition at line 150 of file logging.h.

◆ DOUT0

#define DOUT0 (   args ...)    DOUT(0, args )

Definition at line 156 of file logging.h.

◆ DOUT1

#define DOUT1 (   args ...)    DOUT(1, args )

Definition at line 162 of file logging.h.

◆ DOUT2

#define DOUT2 (   args ...)

Definition at line 170 of file logging.h.

◆ DOUT3

#define DOUT3 (   args ...)

Definition at line 176 of file logging.h.

◆ DOUT4

#define DOUT4 (   args ...)

Definition at line 182 of file logging.h.

◆ DOUT5

#define DOUT5 (   args ...)

Definition at line 188 of file logging.h.

◆ DBOOL

#define DBOOL (   arg)    (arg ? "true" : "false")

Definition at line 191 of file logging.h.

◆ DNAME

#define DNAME (   arg)    (arg ? arg->GetName() : "---")

Definition at line 193 of file logging.h.