summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/Logger.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Plugins/Logger.h')
-rw-r--r--lib/Plugins/Logger.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/Plugins/Logger.h b/lib/Plugins/Logger.h
new file mode 100644
index 00000000..509d2ab2
--- /dev/null
+++ b/lib/Plugins/Logger.h
@@ -0,0 +1,33 @@
+#ifndef LOGGER_H_
+#define LOGGER_H_
+
+#include "Plugin.h"
+#include "Reporter.h"
+
+class CLogger : public CReporter
+{
+ private:
+ std::string m_sLogPath;
+ bool m_bAppendLogs;
+ public:
+ CLogger();
+ virtual ~CLogger() {}
+
+ void Init() {}
+ void DeInit() {}
+ void SetSettings(const map_settings_t& pSettings);
+
+ void Report(const crash_report_t& pReport);
+};
+
+
+PLUGIN_INFO(REPORTER,
+ "Logger",
+ "0.0.1",
+ "Write a report to a specific file",
+ "zprikryl@redhat.com",
+ "https://fedorahosted.org/crash-catcher/wiki");
+
+PLUGIN_INIT(CLogger);
+
+#endif /* LOGGER_H_ */