vnote/src/core/logger.h
Le Tan 52702a32e9 hard days for VNoteX project
Never say "refactor" again!!!
2020-11-28 23:10:43 +08:00

28 lines
432 B
C++

#ifndef LOGGER_H
#define LOGGER_H
#include <QString>
#include <QMessageLogContext>
class QFile;
namespace vnotex
{
class Logger
{
public:
Logger() = delete;
static void init(bool p_debugLog);
private:
static void log(QtMsgType p_type, const QMessageLogContext &p_context, const QString &p_msg);
static QFile s_file;
static bool s_debugLog;
};
}
#endif // LOGGER_H