27#ifndef EASY3D_UTIL_LOGGING_H
28#define EASY3D_UTIL_LOGGING_H
31#include <3rd_party/easyloggingpp/easylogging++.h>
37#define LOG_IF_EVERY_N(n, condition, LEVEL) if (condition) \
38 CLOG_EVERY_N(n, LEVEL, ELPP_CURR_FILE_LOGGER_ID)
43#define LOG_IF_FIRST_N(n, condition, LEVEL) if (condition) \
44 CLOG_N_TIMES(n, LEVEL, ELPP_CURR_FILE_LOGGER_ID)
49#define COUNTER ELPP_COUNTER->hitCounts()
74 bool info_to_stdout =
false,
75 bool warning_to_stdcout =
true,
76 bool error_to_stdcout =
true,
77 bool verbose_to_stdcout =
false,
78 const std::string &
log_file =
"default",
79 int verbosity_threshold = 9
95 virtual void send(el::Level level,
const std::string& msg) = 0;
virtual void send(el::Level level, const std::string &msg)=0
writes the log message msg (and may also other given information).
std::string log_file()
Returns the full path of the log file (empty if no log file has been created).
void initialize(bool info_to_stdout=false, bool warning_to_stdcout=true, bool error_to_stdcout=true, bool verbose_to_stdcout=false, const std::string &log_file="default", int verbosity_threshold=9)
Initializes the logging module.
bool is_initialized()
Returns whether the logging has been initialized.
Definition collider.cpp:182