forked from journeymidnight/s3util
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqlogs3.h
35 lines (23 loc) · 760 Bytes
/
qlogs3.h
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
34
35
#ifndef QLOGS3_H
#define QLOGS3_H
#include <aws/core/utils/logging/LogSystemInterface.h>
#include <aws/core/utils/logging/LogLevel.h>
#include <QObject>
namespace qlibs3 {
using namespace Aws::Utils;
using namespace Aws::Utils::Logging;
class QLogS3: public QObject, public LogSystemInterface{
Q_OBJECT
signals:
void logReceived(const QString &);
public:
using Base = LogSystemInterface;
QLogS3(LogLevel loglevel, QObject *parent=0);
LogLevel GetLogLevel(void) const override;
void Log(LogLevel logLevel, const char* tag, const char* formatStr, ...) override;
void LogStream(LogLevel logLevel, const char* tag, const Aws::OStringStream &messageStream) override;
private:
LogLevel m_loglevel;
};
}
#endif // QLOGS3_H