From 8b23c5f125140efcdd97912d4b2df20531b0a557 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Thu, 2 Nov 2017 12:46:35 +0000 Subject: Adding logging system --- yage/core/logsink.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 yage/core/logsink.h (limited to 'yage/core/logsink.h') 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 -- MIT License + * See file LICENSE for more details + * ---------------------------------------------------------------------------- + */ + +#ifndef YAGE_CORE_LOGSINK_H +#define YAGE_CORE_LOGSINK_H + +#include "logmessage.h" + +#include + +namespace yage +{ + +class LogSink +{ +public: + void operator()(const LogMessage::Meta &, const std::string &message); +}; + +} // namespace yage + +#endif -- cgit