diff options
| author | crupest <crupest@outlook.com> | 2022-02-21 18:44:40 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2022-02-21 18:44:40 +0800 |
| commit | ced1a63686e6c64cb574d74a34d1bbd07d0a668e (patch) | |
| tree | 4082e4689e5e7cede8d59a0538d0f1ae37064acb /include/cru/common/log/StdioLogTarget.h | |
| parent | 6b00fca7c662301bf657a99cb1e89f21541a46bc (diff) | |
| download | cru-ced1a63686e6c64cb574d74a34d1bbd07d0a668e.tar.gz cru-ced1a63686e6c64cb574d74a34d1bbd07d0a668e.tar.bz2 cru-ced1a63686e6c64cb574d74a34d1bbd07d0a668e.zip | |
...
Diffstat (limited to 'include/cru/common/log/StdioLogTarget.h')
| -rw-r--r-- | include/cru/common/log/StdioLogTarget.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/cru/common/log/StdioLogTarget.h b/include/cru/common/log/StdioLogTarget.h new file mode 100644 index 00000000..4123766b --- /dev/null +++ b/include/cru/common/log/StdioLogTarget.h @@ -0,0 +1,17 @@ +#pragma once +#include "Logger.h" + +namespace cru::log { +class StdioLogTarget : public Object, public virtual log::ILogTarget { + public: + explicit StdioLogTarget(); + + CRU_DELETE_COPY(StdioLogTarget) + CRU_DELETE_MOVE(StdioLogTarget) + + ~StdioLogTarget() override; + + public: + void Write(log::LogLevel level, StringView s) override; +}; +} // namespace cru::log |
