Mercurial > thymian
comparison common/logger.cpp @ 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 #include "logger.h" | |
| 2 | |
| 3 void unafrog::logger::propagate_log(unafrog::log::LogLevel level, const std::string &message) noexcept | |
| 4 { | |
| 5 for(const auto& machine : log_machines) | |
| 6 { | |
| 7 machine->do_log(level, message); | |
| 8 } | |
| 9 } | |
| 10 | |
| 11 void unafrog::logger::add_log_machine(unafrog::log::log_machine* m) | |
| 12 { | |
| 13 std::shared_ptr<unafrog::log::log_machine> p(m); | |
| 14 log_machines.push_back(p); | |
| 15 } |
