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/logger.h | |
parent | f49044c9886accc91dfd29056241da3b48324640 (diff) | |
download | YAGE-8b23c5f125140efcdd97912d4b2df20531b0a557.tar.gz YAGE-8b23c5f125140efcdd97912d4b2df20531b0a557.zip |
Adding logging system
Diffstat (limited to 'yage/core/logger.h')
-rw-r--r-- | yage/core/logger.h | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/yage/core/logger.h b/yage/core/logger.h index 90a958d5..e7187a81 100644 --- a/yage/core/logger.h +++ b/yage/core/logger.h @@ -1,6 +1,29 @@ -#ifndef YAGE_LOGGER_H -#define YAGE_LOGGER_H +/* ---------------------------------------------------------------------------- + * logger.h + * + * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> -- MIT License + * See file LICENSE for more details + * ---------------------------------------------------------------------------- + */ +#ifndef YAGE_CORE_LOGGER_H +#define YAGE_CORE_LOGGER_H +#include "logmessage.h" + +namespace yage +{ + +class Logger +{ +public: + LogMessage operator()(); + + void flush(const LogMessage &msg); + + static Logger &instance(); +}; + +} // namespace yage #endif |