Mercurial > thymian
comparison 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 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:a4671277546c |
|---|---|
| 1 #ifndef LOG_MACHINE_H | |
| 2 #define LOG_MACHINE_H | |
| 3 | |
| 4 #include "logtypes.h" | |
| 5 | |
| 6 #include <string> | |
| 7 | |
| 8 namespace unafrog { | |
| 9 namespace log { | |
| 10 | |
| 11 /* This is a platform independent log machine abstract class, those deriving from this will need to provide their own log mahcines*/ | |
| 12 class log_machine | |
| 13 { | |
| 14 public: | |
| 15 | |
| 16 virtual ~log_machine() = default; | |
| 17 | |
| 18 /** | |
| 19 * @brief do_log Every log machine deriving from this needs to overrid this method | |
| 20 * | |
| 21 * @param level The level of the log | |
| 22 * @param message The message to go out | |
| 23 */ | |
| 24 virtual void do_log(unafrog::log::LogLevel level, const std::string& message) noexcept = 0; | |
| 25 }; | |
| 26 | |
| 27 }} | |
| 28 | |
| 29 #endif // LOG_MACHINE_H |
