aboutsummaryrefslogtreecommitdiffstats
path: root/yage/core/logsink.cpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-11-02 18:46:49 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-11-02 18:46:49 +0000
commit5fb7c972d44a3ce0a067101885d2e0c1966e7c89 (patch)
treea65d6a67ab1a2728223dbb9cebcf156670e3e64b /yage/core/logsink.cpp
parent2817eb3841960562d18cee18912cef1bbdb406f1 (diff)
downloadYAGE-5fb7c972d44a3ce0a067101885d2e0c1966e7c89.tar.gz
YAGE-5fb7c972d44a3ce0a067101885d2e0c1966e7c89.zip
Adding logsink
Diffstat (limited to 'yage/core/logsink.cpp')
-rw-r--r--yage/core/logsink.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/yage/core/logsink.cpp b/yage/core/logsink.cpp
new file mode 100644
index 00000000..1cc8b139
--- /dev/null
+++ b/yage/core/logsink.cpp
@@ -0,0 +1,19 @@
+/* ----------------------------------------------------------------------------
+ * logsink.cpp
+ *
+ * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> -- MIT License
+ * See file LICENSE for more details
+ * ----------------------------------------------------------------------------
+ */
+
+#include "logsink.h"
+
+namespace yage
+{
+
+void LogSink::write(const LogMessage::Meta &meta, const std::string &msg)
+{
+ wrapper_->write(meta, msg);
+}
+
+} // namespace yage