20 #ifndef STELLOGGER_HPP 21 #define STELLOGGER_HPP 36 static void init(
const QString& logFilePath);
43 static void debugLogHandler(QtMsgType type,
const QMessageLogContext& ctx,
const QString& str);
46 static const QString&
getLog() {
return log;}
48 static QString getLogFileName() {
return logFile.fileName();}
59 static QMutex fileMutex;
61 static QString getMsvcVersionString(
int ver);
64 #endif // STELLOGGER_HPP static void deinit()
Deinitialize the log file.
static void writeLog(QString msg)
Write the message plus a newline to the log file at $USERDIR/log.txt.
static const QString & getLog()
Return a copy of text of the log file.
static void debugLogHandler(QtMsgType type, const QMessageLogContext &ctx, const QString &str)
Handler for qDebug() and friends. Writes message to log file at $USERDIR/log.txt and echoes to stderr...
Class wit only static members used to manage logging for Stellarium.
static void init(const QString &logFilePath)
Create and initialize the log file.