summaryrefslogtreecommitdiff
path: root/i/marvin/src/log/logger.cc
diff options
context:
space:
mode:
Diffstat (limited to 'i/marvin/src/log/logger.cc')
-rw-r--r--i/marvin/src/log/logger.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/i/marvin/src/log/logger.cc b/i/marvin/src/log/logger.cc
index c6fdb6e..128aa16 100644
--- a/i/marvin/src/log/logger.cc
+++ b/i/marvin/src/log/logger.cc
@@ -26,6 +26,7 @@
#include "logger_null.hh"
#include "logger_stdout.hh"
#include "logger_file.hh"
+#include "logger_ram.hh"
#include <stdexcept>
@@ -43,6 +44,8 @@ Logger::create (const std::string &loggerName)
else
return new LoggerFile (loggerName.substr (5));
else
+ if (loggerName.substr (0, 3) == "ram")
+ return new LoggerRam;
throw std::invalid_argument ("Unknown logger : " + loggerName);
return 0;
}