diff options
Diffstat (limited to 'GcodeProcessorLib/logger.h')
-rw-r--r-- | GcodeProcessorLib/logger.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/GcodeProcessorLib/logger.h b/GcodeProcessorLib/logger.h index 9db2df1..f345097 100644 --- a/GcodeProcessorLib/logger.h +++ b/GcodeProcessorLib/logger.h @@ -36,7 +36,7 @@ enum log_levels { NOSET, VERBOSE, DEBUG, INFO, WARNING , ERROR, CRITICAL}; static const int log_level_names_size = 7; static const char* log_level_names[] = {"NOSET", "VERBOSE", "DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"}; const static int log_level_values[LOG_LEVEL_COUNT] = { 0, 5, 10, 20, 30, 40, 50}; - +#define DEFAULT_LOG_LEVEL_VALUE 40 class logger { public: @@ -48,7 +48,8 @@ public: void set_log_level(const int logger_type, const int log_level); void set_log_level(const int log_level); - + + std::string get_log_level_name(std::string logger_name); virtual void log(const int logger_type, const int log_level, const std::string& message); virtual void log(const int logger_type, const int log_level, const std::string& message, bool is_exception); virtual void log_exception(const int logger_type, const std::string& message); |