20 #ifndef STELLOGGER_HPP
21 #define STELLOGGER_HPP
35 static void init(
const QString& logFilePath);
42 static void debugLogHandler(QtMsgType,
const QMessageLogContext&,
const QString& str);
45 static const QString&
getLog() {
return log;}
47 static QString getLogFileName() {
return logFile.fileName();}
59 static QString getMsvcVersionString(
int ver);
62 #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.
Class wit only static members used to manage logging for Stellarium.
static void init(const QString &logFilePath)
Create and initialize the log file.
static void debugLogHandler(QtMsgType, const QMessageLogContext &, const QString &str)
Handler for qDebug() and friends. Writes message to log file at $USERDIR/log.txt and echoes to stderr...