Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FormerLurker/ArcWelderLib.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFormerLurker <hochgebe@gmail.com>2021-11-21 21:31:00 +0300
committerFormerLurker <hochgebe@gmail.com>2021-11-21 21:31:00 +0300
commit9b0afec63643275ecdc9005bfbbba20e359a7938 (patch)
treecc9153d01a15d3764dd99bd53e30b6a178c21835 /GcodeProcessorLib/logger.h
parent4c193828056771381f7bfc6f04133bd1a45447ac (diff)
Make extrusion-rate-variance-percent optional (0 to disable). Add HTML box drawing for pretty statistics. Separate extrusion and retraction statistics for analyzation purposes, but keep combined statistics.
Diffstat (limited to 'GcodeProcessorLib/logger.h')
-rw-r--r--GcodeProcessorLib/logger.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/GcodeProcessorLib/logger.h b/GcodeProcessorLib/logger.h
index f345097..8cbd5e3 100644
--- a/GcodeProcessorLib/logger.h
+++ b/GcodeProcessorLib/logger.h
@@ -46,18 +46,18 @@ public:
void set_log_level_by_value(const int logger_type, const int log_level_value);
void set_log_level_by_value(const int log_level_value);
- void set_log_level(const int logger_type, const int log_level);
- void set_log_level(const int log_level);
+ void set_log_level(const int logger_type, log_levels log_level);
+ void set_log_level(log_levels 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(const int logger_type, log_levels log_level, const std::string& message);
+ virtual void log(const int logger_type, log_levels log_level, const std::string& message, bool is_exception);
virtual void log_exception(const int logger_type, const std::string& message);
- static int get_log_level_value(const int log_level);
+ static int get_log_level_value(log_levels log_level);
static int get_log_level_for_value(int log_level_value);
- virtual bool is_log_level_enabled(const int logger_type, const int log_level);
+ virtual bool is_log_level_enabled(const int logger_type, log_levels log_level);
protected:
- virtual void create_log_message(const int logger_type, const int log_level, const std::string& message, std::string& output);
+ virtual void create_log_message(const int logger_type, log_levels log_level, const std::string& message, std::string& output);
bool loggers_created_;
private: