diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2018-01-05 15:56:35 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2018-01-05 15:56:35 +0000 |
commit | db6480dccd9a3dbf4100a824930a36251f4e743c (patch) | |
tree | a36c5be39c86f9888e64076ef44c386e5160c088 /yage/core/logmessage.h | |
parent | 7b95e3a9eacf296f215c73e5d8ad9090a24adb20 (diff) | |
download | YAGE-db6480dccd9a3dbf4100a824930a36251f4e743c.tar.gz YAGE-db6480dccd9a3dbf4100a824930a36251f4e743c.zip |
[Engine] Log levels added to engine.
Diffstat (limited to 'yage/core/logmessage.h')
-rw-r--r-- | yage/core/logmessage.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/yage/core/logmessage.h b/yage/core/logmessage.h index ef7fd8a5..b6929ba5 100644 --- a/yage/core/logmessage.h +++ b/yage/core/logmessage.h @@ -13,6 +13,8 @@ #include <sstream> #include <string> +#include "loglevel.h" + namespace yage { @@ -34,8 +36,9 @@ public: LogMessage &operator<<(std::ostream &(*fn)(std::ostream &os)); struct Meta { + LogLevel level; std::string fileName; - int lineNo; + int line; }; private: @@ -45,7 +48,7 @@ private: Logger *owner_; Meta meta_; - LogMessage(Logger *owner, const std::string &fileName_i, int lineNum_i); + LogMessage(Logger *owner, LogLevel level, const std::string &file_name, int line_num); LogMessage(LogMessage &&msg); }; |