summaryrefslogtreecommitdiffstats
path: root/src/modules/FileLogger
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/FileLogger')
-rw-r--r--src/modules/FileLogger/FileLogger.cpp6
-rw-r--r--src/modules/FileLogger/FileLogger.h16
2 files changed, 11 insertions, 11 deletions
diff --git a/src/modules/FileLogger/FileLogger.cpp b/src/modules/FileLogger/FileLogger.cpp
index 4655002..a78ab36 100644
--- a/src/modules/FileLogger/FileLogger.cpp
+++ b/src/modules/FileLogger/FileLogger.cpp
@@ -19,7 +19,7 @@
#include "FileLogger.h"
-#include <Common/ConfigEntry.h>
+#include <Core/ConfigEntry.h>
namespace Mad {
@@ -29,7 +29,7 @@ FileLogger::ConfigHelper FileLogger::configHelper;
std::set<FileLogger*> FileLogger::loggers;
-bool FileLogger::ConfigHelper::handleConfigEntry(const Common::ConfigEntry &entry, bool handled) {
+bool FileLogger::ConfigHelper::handleConfigEntry(const Core::ConfigEntry &entry, bool handled) {
if(handled)
return false;
@@ -40,7 +40,7 @@ bool FileLogger::ConfigHelper::handleConfigEntry(const Common::ConfigEntry &entr
FileLogger *logger = new FileLogger(entry[0][1]);
loggers.insert(logger);
- Common::LogManager::get()->registerLogger(static_cast<Logger*>(logger));
+ Core::LogManager::get()->registerLogger(static_cast<Logger*>(logger));
}
else {
Logger::logf(Logger::WARNING, "FileLogger: no filename given.");
diff --git a/src/modules/FileLogger/FileLogger.h b/src/modules/FileLogger/FileLogger.h
index 2def986..04e2126 100644
--- a/src/modules/FileLogger/FileLogger.h
+++ b/src/modules/FileLogger/FileLogger.h
@@ -20,20 +20,20 @@
#ifndef MAD_MODULES_FILELOGGER_H_
#define MAD_MODULES_FILELOGGER_H_
-#include <Common/ConfigManager.h>
-#include <Common/Configurable.h>
-#include <Common/LogManager.h>
+#include <Core/ConfigManager.h>
+#include <Core/Configurable.h>
+#include <Core/LogManager.h>
#include <fstream>
namespace Mad {
namespace Modules {
-class FileLogger : private Common::Logger, private Common::RemoteLogger {
+class FileLogger : private Core::Logger, private Core::RemoteLogger {
private:
- class ConfigHelper : public Common::Configurable {
+ class ConfigHelper : public Core::Configurable {
protected:
- virtual bool handleConfigEntry(const Common::ConfigEntry &entry, bool handled);
+ virtual bool handleConfigEntry(const Core::ConfigEntry &entry, bool handled);
public:
virtual int getPriority() const {return 1;}
@@ -57,11 +57,11 @@ class FileLogger : private Common::Logger, private Common::RemoteLogger {
: file(filename.c_str(), std::ios::out|std::ios::app) {}
static void registerConfigHelper() {
- Common::ConfigManager::get()->registerConfigurable(&configHelper);
+ Core::ConfigManager::get()->registerConfigurable(&configHelper);
}
static void unregisterConfigHelper() {
- Common::ConfigManager::get()->unregisterConfigurable(&configHelper);
+ Core::ConfigManager::get()->unregisterConfigurable(&configHelper);
for(std::set<FileLogger*>::iterator logger = loggers.begin(); logger != loggers.end(); ++logger) {
delete *logger;