summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/Logger.h
blob: 509d2ab2eed93dca8ce5c5fbe786db3e58b1ef81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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_ */