14#ifndef WIN32_LEAN_AND_MEAN
15#define WIN32_LEAN_AND_MEAN
66 static void set_logfile(
const std::string& filename);
69 static void debug(
const std::string& message);
70 static void info(
const std::string& message);
71 static void warning(
const std::string& message);
72 static void error(
const std::string& message);
73 static void critical(
const std::string& message);
74 static void fatal(
const std::string& message);
84 static std::string
to_hex(T val);
87 static void log_vector_stats(
const std::string& name,
const std::vector<float>& v,
int n_show = 5);
88 static void log_vector_stats_int8(
const std::string& name,
const std::vector<int8_t>& v,
int n_show = 5);
Static logging class for application-wide logging.
static void log_vector_stats(const std::string &name, const std::vector< float > &v, int n_show=5)
static bool log_file_truncated_
static std::string log_file_path_
static void debug(const std::string &message)
static std::string to_hex(T val)
static void log_internal(Level level, const std::string &message)
static void warning(const std::string &message)
static std::string ptrToString(const void *ptr)
static void ensure_logfile_open_and_truncated()
static bool console_enabled_
static void set_level(Level new_level)
static void enable_console(bool enabled)
static std::string level_to_string(Level level)
static Level current_level_
static std::string uint16ToHex(uint16_t val)
static std::ofstream log_file_stream_
static void info(const std::string &message)
static void error(const std::string &message)
static void fatal(const std::string &message)
static void log_vector_stats_int8(const std::string &name, const std::vector< int8_t > &v, int n_show=5)
static void critical(const std::string &message)
static void set_logfile(const std::string &filename)