aboutsummaryrefslogtreecommitdiffstats
path: root/yage/core/logsink.h
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-11-02 12:46:35 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-11-02 12:46:35 +0000
commit8b23c5f125140efcdd97912d4b2df20531b0a557 (patch)
tree0afbd7bb7b7ad2f52e74c8709b5e26f8164345f0 /yage/core/logsink.h
parentf49044c9886accc91dfd29056241da3b48324640 (diff)
downloadYAGE-8b23c5f125140efcdd97912d4b2df20531b0a557.tar.gz
YAGE-8b23c5f125140efcdd97912d4b2df20531b0a557.zip
Adding logging system
Diffstat (limited to 'yage/core/logsink.h')
-rw-r--r--yage/core/logsink.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/yage/core/logsink.h b/yage/core/logsink.h
new file mode 100644
index 00000000..bdfc70cf
--- /dev/null
+++ b/yage/core/logsink.h
@@ -0,0 +1,27 @@
+/* ----------------------------------------------------------------------------
+ * logger.cpp
+ *
+ * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> -- MIT License
+ * See file LICENSE for more details
+ * ----------------------------------------------------------------------------
+ */
+
+#ifndef YAGE_CORE_LOGSINK_H
+#define YAGE_CORE_LOGSINK_H
+
+#include "logmessage.h"
+
+#include <string>
+
+namespace yage
+{
+
+class LogSink
+{
+public:
+ void operator()(const LogMessage::Meta &, const std::string &message);
+};
+
+} // namespace yage
+
+#endif