mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
28 lines
432 B
C++
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
|