DynuIPRefresher/inc/Logger.h

52 lines
988 B
C
Raw Permalink Normal View History

/**
* Fancy console log output format
* todo log level support
*
* @author Lukas Heiligenbrunner
* @date 26.10.2019
*/
2019-10-26 12:41:43 +00:00
#pragma once
#include <string>
2019-10-26 12:41:43 +00:00
class Logger {
public:
/**
* a debug message
* @param message message
*/
2019-10-26 12:41:43 +00:00
static void debug(std::string message);
/**
* a default message
* @param message message
*/
2019-10-26 12:41:43 +00:00
static void message(std::string message);
/**
* a warning message
* @param message message
*/
2019-10-26 12:41:43 +00:00
static void warning(std::string message);
/**
* a error message
* @param message message
*/
2019-10-26 12:41:43 +00:00
static void error(std::string message);
/**
* a log message with manual level set
* @param message message
* @param level loglevel (1-4) or predefined labels
*/
2020-04-30 10:16:29 +00:00
static void log(const std::string &message, int level);
2020-04-30 17:37:11 +00:00
static const int Debug = 4;
static const int Message = 3;
static const int Warning = 2;
static const int Error = 1;
};