diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-11-02 12:46:35 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-11-02 12:46:35 +0000 |
commit | 8b23c5f125140efcdd97912d4b2df20531b0a557 (patch) | |
tree | 0afbd7bb7b7ad2f52e74c8709b5e26f8164345f0 /yage/core/logsink.h | |
parent | f49044c9886accc91dfd29056241da3b48324640 (diff) | |
download | YAGE-8b23c5f125140efcdd97912d4b2df20531b0a557.tar.gz YAGE-8b23c5f125140efcdd97912d4b2df20531b0a557.zip |
Adding logging system
Diffstat (limited to 'yage/core/logsink.h')
-rw-r--r-- | yage/core/logsink.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/yage/core/logsink.h b/yage/core/logsink.h new file mode 100644 index 00000000..bdfc70cf --- /dev/null +++ b/yage/core/logsink.h @@ -0,0 +1,27 @@ +/* ---------------------------------------------------------------------------- + * logger.cpp + * + * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> -- MIT License + * See file LICENSE for more details + * ---------------------------------------------------------------------------- + */ + +#ifndef YAGE_CORE_LOGSINK_H +#define YAGE_CORE_LOGSINK_H + +#include "logmessage.h" + +#include <string> + +namespace yage +{ + +class LogSink +{ +public: + void operator()(const LogMessage::Meta &, const std::string &message); +}; + +} // namespace yage + +#endif |