You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
393 B
25 lines
393 B
// Copyright 2019-2021 The Hush developers
|
|
// Released under the GPLv3
|
|
#ifndef LOGGER_H
|
|
#define LOGGER_H
|
|
|
|
#include "precompiled.h"
|
|
|
|
class Logger : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit Logger(QObject *parent, QString fileName);
|
|
~Logger();
|
|
|
|
private:
|
|
QFile *file = nullptr;
|
|
bool m_showDate;
|
|
|
|
signals:
|
|
|
|
public slots:
|
|
void write(const QString &value);
|
|
};
|
|
|
|
#endif // LOGGER_H
|
|
|