Free Electron
Classes | Namespaces | Macros | Typedefs | Functions
debug.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  fe::Log
 Base class for logging system Log objects. More...
 
class  fe::Logger
 C++ portion of logging interface implementation. More...
 

Namespaces

 fe
 kernel
 

Macros

#define MODULE   ""
 
#define feLog(...)
 
#define feLogGroup(grp, ...)
 

Typedefs

typedef Log * fe::t_logptr
 

Functions

void fe::vsPrintf (std::string &target, const char *fmt, va_list ap, int &size)
 Format text into a fe::String. More...
 
FE_DL_PUBLIC void fe::intrusive_ptr_add_ref (Log *a_log)
 
FE_DL_PUBLIC void fe::intrusive_ptr_release (Log *a_log)
 
FE_DL_PUBLIC void feLogDirect (const char *format,...)
 
FE_DL_PUBLIC void feLogError (const char *format,...)
 

Macro Definition Documentation

◆ feLog

#define feLog (   ...)
Value:
{ \
std::stringstream out; \
out << __LINE__; \
std::map<std::string,std::string> attributes; \
attributes["file"] = __FILE__; \
attributes["line"] = out.str().c_str(); \
attributes["date"] = __DATE__; \
attributes["time"] = __TIME__; \
attributes["group"] = MODULE; \
feLogger()->log(MODULE, attributes, __VA_ARGS__); \
}

◆ feLogGroup

#define feLogGroup (   grp,
  ... 
)
Value:
{ \
std::stringstream out; \
out << __LINE__; \
std::map<std::string,std::string> attributes; \
attributes["file"] = __FILE__; \
attributes["line"] = out.str().c_str(); \
attributes["date"] = __DATE__; \
attributes["time"] = __TIME__; \
attributes["group"] = grp; \
feLogger()->log(grp, attributes, __VA_ARGS__); \
}