summaryrefslogtreecommitdiffstats
path: root/src/modules/FileLogger
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/FileLogger')
-rw-r--r--src/modules/FileLogger/CMakeLists.txt5
-rw-r--r--src/modules/FileLogger/FileLogger.cpp7
-rw-r--r--src/modules/FileLogger/FileLogger.h1
3 files changed, 7 insertions, 6 deletions
diff --git a/src/modules/FileLogger/CMakeLists.txt b/src/modules/FileLogger/CMakeLists.txt
new file mode 100644
index 0000000..39459d3
--- /dev/null
+++ b/src/modules/FileLogger/CMakeLists.txt
@@ -0,0 +1,5 @@
+include_directories(${INCLUDES})
+
+add_library(FileLogger MODULE
+ FileLogger.cpp
+)
diff --git a/src/modules/FileLogger/FileLogger.cpp b/src/modules/FileLogger/FileLogger.cpp
index 5e0c021..4655002 100644
--- a/src/modules/FileLogger/FileLogger.cpp
+++ b/src/modules/FileLogger/FileLogger.cpp
@@ -21,9 +21,6 @@
#include <Common/ConfigEntry.h>
-#define init FileLogger_LTX_init
-#define deinit FileLogger_LTX_deinit
-
namespace Mad {
namespace Modules {
@@ -62,11 +59,11 @@ bool FileLogger::ConfigHelper::handleConfigEntry(const Common::ConfigEntry &entr
extern "C" {
-void init() {
+void FileLogger_init() {
Mad::Modules::FileLogger::registerConfigHelper();
}
-void deinit() {
+void FileLogger_deinit() {
Mad::Modules::FileLogger::unregisterConfigHelper();
}
diff --git a/src/modules/FileLogger/FileLogger.h b/src/modules/FileLogger/FileLogger.h
index 404299b..2def986 100644
--- a/src/modules/FileLogger/FileLogger.h
+++ b/src/modules/FileLogger/FileLogger.h
@@ -58,7 +58,6 @@ class FileLogger : private Common::Logger, private Common::RemoteLogger {
static void registerConfigHelper() {
Common::ConfigManager::get()->registerConfigurable(&configHelper);
- Logger::log("Registered!");
}
static void unregisterConfigHelper() {