29class ITOMCOMMONQT_EXPORT
Logger :
public QObject
44 QString logFileName, QString logFileDir =
"",
int fileSizeBytes = 0,
int backupCount = 0);
55 void writePythonLog(QString msg);
63 static bool s_handlerRegistered;
64 static QVector<Logger*> s_instances;
66 QTextStream* m_messageStream;
67 QMutex m_msgOutputProtection;
69 static void s_messageHandler(
70 QtMsgType type,
const QMessageLogContext& context,
const QString& msg);
72 void initFiles(
int fileSize,
int backupCount);
73 QFileInfoList listBackups();
74 void deleteOldBackups(
int backupCount);
75 void storeBackupFile();
76 void handleMessage(QtMsgType type,
const QMessageLogContext& context,
const QString& msg);