log.hpp
Go to the documentation of this file.
118 void logChar(int32_t _id, int32_t _level, int32_t _ligne, const char* _funcName, const char* _log);
127 void logStream(int32_t _id, int32_t _level, int32_t _ligne, const char* _funcName, const std::ostream& _log);
156 using callbackLog = std::function<void (const char* _libName, enum elog::level _level, int32_t _ligne, const char* _funcName, const char* _log)>;
void setCallbackLog(const elog::callbackLog &_callback)
Set a callback to display all log in an other framework.
void displayBacktrace(bool _breakAtEnd=false, int32_t _removeElement=0)
Display the current backtrace.
void setBackTrace(bool _status)
Set back-trace display on Error log enable or disable.
void setLogInFile(const std::string &_filename="")
Set log done in a specific file.
std::function< void(const char *_libName, enum elog::level _level, int32_t _ligne, const char *_funcName, const char *_log)> callbackLog
function definition of an external log function
Definition: log.hpp:156
Display log critical to information (removed in release mode)
Definition: log.hpp:26
int32_t registerInstance(const std::string &_name)
Register an element in the log system.
void setLevel(const std::string &_name, enum elog::level _level)
Set the log level of a specific instance.
void logChar(int32_t _id, int32_t _level, int32_t _ligne, const char *_funcName, const char *_log)
Call log to display.
void logStream1(int32_t _id, int32_t _level, const std::ostream &_log)
Call log to display.
Display only critical logs (note that critical generally assert with a backtrace (when we can)) ...
Definition: log.hpp:23
void logStream(int32_t _id, int32_t _level, int32_t _ligne, const char *_funcName, const std::ostream &_log)
Call log to display.
level
Log level is a simple list of all log availlable. This enum is used when setting a log and when user ...
Definition: log.hpp:20
basic namespace of the elog library. (it might contain all the elog fuctions without macro) ...
Definition: elog.hpp:14