diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2018-05-07 14:12:58 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2018-05-07 14:12:58 +0100 |
commit | 5c4c0ca30911b5129b32142b430bb6be1baf0e47 (patch) | |
tree | 9e7a2979a69e8be6446f772384a77849d5625a17 /yage/core/loglevel.h | |
parent | 5356fc4701eeccc5f5c85df2890f60f0cdf99a4b (diff) | |
download | YAGE-5c4c0ca30911b5129b32142b430bb6be1baf0e47.tar.gz YAGE-5c4c0ca30911b5129b32142b430bb6be1baf0e47.zip |
Adding all logging functionality in one file
Diffstat (limited to 'yage/core/loglevel.h')
-rw-r--r-- | yage/core/loglevel.h | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/yage/core/loglevel.h b/yage/core/loglevel.h deleted file mode 100644 index 51d28398..00000000 --- a/yage/core/loglevel.h +++ /dev/null @@ -1,54 +0,0 @@ -/** --------------------------------------------------------------------------- - * @file: loglevel.h - * - * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> - * MIT License, see LICENSE file for more details. - * ---------------------------------------------------------------------------- - */ - -#ifndef YAGE_CORE_LOGLEVEL_H -#define YAGE_CORE_LOGLEVEL_H - -#ifdef _WIN32 -#ifdef ERROR -#define YAGE_ERROR_TMP ERROR -#undef ERROR -#endif -#endif - -namespace yage -{ - -/** - * Different log levels that can be assigned to each message sent to the Logger. - * The logger then outputs the message if it is above the minimum log level, or - * does not process it. - */ -enum class LogLevel { - /// Lowest log level. This is used by the game engine to output debugging - /// information but is turned off in the logger by default. - DEBUG, - - /// Information message. - INFO, - - /// Warning message. - WARNING, - - /// Error message. - ERROR, - - /// Fatal message that should be output when the game - /// crashes. - FATAL, -}; -} - -#ifdef _WIN32 -#ifdef YAGE_ERROR_TMP -#define ERROR YAGE_ERROR_TMP -#undef YAGE_ERROR_TMP -#endif -#endif - -#endif |