Mercurial > thymian
diff common/log_machine.h @ 0:a4671277546c tip
created the repository for the thymian project
| author | ferencd |
|---|---|
| date | Tue, 17 Aug 2021 11:19:54 +0200 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/common/log_machine.h Tue Aug 17 11:19:54 2021 +0200 @@ -0,0 +1,29 @@ +#ifndef LOG_MACHINE_H +#define LOG_MACHINE_H + +#include "logtypes.h" + +#include <string> + +namespace unafrog { +namespace log { + +/* This is a platform independent log machine abstract class, those deriving from this will need to provide their own log mahcines*/ +class log_machine +{ +public: + + virtual ~log_machine() = default; + + /** + * @brief do_log Every log machine deriving from this needs to overrid this method + * + * @param level The level of the log + * @param message The message to go out + */ + virtual void do_log(unafrog::log::LogLevel level, const std::string& message) noexcept = 0; +}; + +}} + +#endif // LOG_MACHINE_H
