#58 - Add connection logging
This commit is contained in:
23
src/logger.h
Normal file
23
src/logger.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#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;
|
||||
bool m_showDate;
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
void write(const QString &value);
|
||||
};
|
||||
|
||||
#endif // LOGGER_H
|
||||
Reference in New Issue
Block a user