aboutsummaryrefslogtreecommitdiffstats
path: root/yage/core/logmessage.cpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2018-05-07 14:12:58 +0100
committerYann Herklotz <ymherklotz@gmail.com>2018-05-07 14:12:58 +0100
commit5c4c0ca30911b5129b32142b430bb6be1baf0e47 (patch)
tree9e7a2979a69e8be6446f772384a77849d5625a17 /yage/core/logmessage.cpp
parent5356fc4701eeccc5f5c85df2890f60f0cdf99a4b (diff)
downloadYAGE-5c4c0ca30911b5129b32142b430bb6be1baf0e47.tar.gz
YAGE-5c4c0ca30911b5129b32142b430bb6be1baf0e47.zip
Adding all logging functionality in one file
Diffstat (limited to 'yage/core/logmessage.cpp')
-rw-r--r--yage/core/logmessage.cpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/yage/core/logmessage.cpp b/yage/core/logmessage.cpp
deleted file mode 100644
index bda20fb0..00000000
--- a/yage/core/logmessage.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
-/** ---------------------------------------------------------------------------
- * @file: logmessage.cpp
- *
- * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com>
- * MIT License, see LICENSE file for more details.
- * ----------------------------------------------------------------------------
- */
-
-#include "logmessage.h"
-#include "logger.h"
-
-#include <iostream>
-
-namespace yage
-{
-
-LogMessage::LogMessage(Logger *owner, LogLevel level,
- const std::string &file_name, int line_num)
- : owner_(owner), meta_({level, file_name, line_num})
-{
-}
-
-LogMessage::LogMessage(LogMessage &&msg) : owner_(std::move(msg.owner_)) {}
-
-LogMessage::~LogMessage()
-{
- if (owner_ != nullptr) {
- owner_->flush(this);
- }
-}
-
-LogMessage &LogMessage::operator<<(std::ostream &(*fn)(std::ostream &os))
-{
- fn(buffer_);
- return *this;
-}
-
-} // namespace yage