Develop Biology
The language of life
Macros.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BIO_LOG_DEBUG(format, ...)   log(log::Level::Debug(), format, __VA_ARGS__)
 
#define BIO_LOG_ERROR(format, ...)   log(log::Level::Error(), format, __VA_ARGS__)
 
#define BIO_LOG_INFO(format, ...)   log(log::Level::Info(), format, __VA_ARGS__)
 
#define BIO_LOG_LEVEL_FUNCTION_BODY(functionName)
 
#define BIO_LOG_PRINTF_MAX_LINE_SIZE   2000
 
#define BIO_LOG_WARN(format, ...)   log(log::Level::Warn(), format, __VA_ARGS__)
 

Macro Definition Documentation

◆ BIO_LOG_DEBUG

#define BIO_LOG_DEBUG (   format,
  ... 
)    log(log::Level::Debug(), format, __VA_ARGS__)

Definition at line 42 of file Macros.h.

◆ BIO_LOG_ERROR

#define BIO_LOG_ERROR (   format,
  ... 
)    log(log::Level::Error(), format, __VA_ARGS__)

Definition at line 57 of file Macros.h.

◆ BIO_LOG_INFO

#define BIO_LOG_INFO (   format,
  ... 
)    log(log::Level::Info(), format, __VA_ARGS__)

Definition at line 47 of file Macros.h.

◆ BIO_LOG_LEVEL_FUNCTION_BODY

#define BIO_LOG_LEVEL_FUNCTION_BODY (   functionName)
Value:
functionName, \
::bio::log::LevelPerspective::Instance(), \
::bio::log::Level)
#define BIO_ID_FUNCTION_BODY(functionName, perspective, dimension)

To make defining log Levels easier, use this macro to define the function body of your Level Function(). This will assign a value to a string that is identical to your FunctionName (e.g. log::LevelPerspective::Instance().GetNameFromId(MySpecialInformation()) would give "MySpecialInformation") Necessitates that functionName be a part of the log namespace and that any other namespaces are already specified (e.g. using namespace)

Definition at line 31 of file Macros.h.

◆ BIO_LOG_PRINTF_MAX_LINE_SIZE

#define BIO_LOG_PRINTF_MAX_LINE_SIZE   2000

Definition at line 24 of file Macros.h.

◆ BIO_LOG_WARN

#define BIO_LOG_WARN (   format,
  ... 
)    log(log::Level::Warn(), format, __VA_ARGS__)

Definition at line 52 of file Macros.h.