CAPD::DynSys Library  6.0.0
LoggerConsole.h File Reference
#include <capd/config-capdAux.h>
#include <iostream>

Classes

class  capd::auxil::Logger
 

Namespaces

 capd
 
 capd::auxil
 

Macros

#define INIT_CAPD_CXX_LOGGER   0
 
#define CAPD_CLASS_LOGGER   static inline capd::auxil::Logger& getCAPDLogger(const char* file, const char* buildDir) { static capd::auxil::Logger logger(file, buildDir, false); return logger; }
 
#define CAPD_TRACE(message)
 
#define CAPD_DEBUG(message)
 
#define CAPD_INFO(message)   ( getCAPDLogger(__FILE__, FILE_BUILD_DIR)() << "INFO: " << message << std::endl)
 
#define CAPD_WARN(message)   ( getCAPDLogger(__FILE__, FILE_BUILD_DIR)() << "WARN: " << message << std::endl)
 
#define CAPD_ERROR(message)   ( getCAPDLogger(__FILE__, FILE_BUILD_DIR)() << "ERROR: " << message << std::endl)
 
#define CAPD_FATAL(message)   ( getCAPDLogger(__FILE__, FILE_BUILD_DIR)() << "FATAL: " << message << std::endl)
 

Functions

capd::auxil::Logger getCAPDLogger (const char *file, const char *buildDir)
 

Detailed Description

Macro Definition Documentation

◆ CAPD_CLASS_LOGGER

#define CAPD_CLASS_LOGGER   static inline capd::auxil::Logger& getCAPDLogger(const char* file, const char* buildDir) { static capd::auxil::Logger logger(file, buildDir, false); return logger; }

◆ CAPD_DEBUG

#define CAPD_DEBUG (   message)

◆ CAPD_ERROR

#define CAPD_ERROR (   message)    ( getCAPDLogger(__FILE__, FILE_BUILD_DIR)() << "ERROR: " << message << std::endl)

◆ CAPD_FATAL

#define CAPD_FATAL (   message)    ( getCAPDLogger(__FILE__, FILE_BUILD_DIR)() << "FATAL: " << message << std::endl)

◆ CAPD_INFO

#define CAPD_INFO (   message)    ( getCAPDLogger(__FILE__, FILE_BUILD_DIR)() << "INFO: " << message << std::endl)

◆ CAPD_TRACE

#define CAPD_TRACE (   message)

◆ CAPD_WARN

#define CAPD_WARN (   message)    ( getCAPDLogger(__FILE__, FILE_BUILD_DIR)() << "WARN: " << message << std::endl)

◆ INIT_CAPD_CXX_LOGGER

#define INIT_CAPD_CXX_LOGGER   0

Function Documentation

◆ getCAPDLogger()

capd::auxil::Logger getCAPDLogger ( const char *  file,
const char *  buildDir 
)