aboutsummaryrefslogtreecommitdiffstats
path: root/include/YAGE/logger.hpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-04-02 09:19:32 +0100
committerYann Herklotz <ymherklotz@gmail.com>2017-04-02 09:19:32 +0100
commitaa67c8bb56cb750ac83ecbd361439f5ecb5e12d9 (patch)
treef1517a86654cf5457fa0b3aa6cfaea4bfa4eef36 /include/YAGE/logger.hpp
parent21a147c3c1c2fad2819fe76becab320c51eb131f (diff)
downloadYAGE-aa67c8bb56cb750ac83ecbd361439f5ecb5e12d9.tar.gz
YAGE-aa67c8bb56cb750ac83ecbd361439f5ecb5e12d9.zip
Renamed includes
Diffstat (limited to 'include/YAGE/logger.hpp')
-rw-r--r--include/YAGE/logger.hpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/YAGE/logger.hpp b/include/YAGE/logger.hpp
new file mode 100644
index 00000000..36c7b9b3
--- /dev/null
+++ b/include/YAGE/logger.hpp
@@ -0,0 +1,24 @@
+#ifndef LOGGER_HPP
+#define LOGGER_HPP
+
+#include <string>
+
+class Logger
+{
+public:
+ template<typename Tail>
+ static std::string log(std::ostream &out, Tail &&tail)
+ {
+ out<<tail;
+ }
+
+ template<typename Head, typename... Tail>
+ static std::string log(std::ostream &out, Head &&head, Tail &&...tail)
+ {
+ out<<std::forward<Head>(head);
+ log(out, std::forward<Tail>(tail)...);
+ }
+};
+
+
+#endif