summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/Logger.h
diff options
context:
space:
mode:
authorZdenek Prikryl <zprikryl@redhat.com>2009-02-18 10:13:26 +0100
committerZdenek Prikryl <zprikryl@redhat.com>2009-02-18 10:13:26 +0100
commitf111c8cf17cbdef8a7f044324ffd510cbcc7ab6f (patch)
treead1fccbb5d741a0efcfd334bf5a9c74aae4efbbb /lib/Plugins/Logger.h
parent3c988f99dd2d0898c78feb042e14dda5a6525de5 (diff)
downloadabrt-f111c8cf17cbdef8a7f044324ffd510cbcc7ab6f.tar.gz
abrt-f111c8cf17cbdef8a7f044324ffd510cbcc7ab6f.tar.xz
abrt-f111c8cf17cbdef8a7f044324ffd510cbcc7ab6f.zip
new logger plugin
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_ */