diff options
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 |