Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://astro.uni-altai.ru/~aw/stellarium/api/classStelLogger.html
Дата изменения: Unknown Дата индексирования: Fri Feb 28 07:24:31 2014 Кодировка: Поисковые слова: ngc 891 |
Stellarium 0.12.3
|
Class wit only static members used to manage logging for Stellarium. More...
#include <StelLogger.hpp>
Static Public Member Functions | |
static void | init (const QString &logFilePath) |
Create and initialize the log file. More... | |
static void | deinit () |
Deinitialize the log file. More... | |
static void | debugLogHandler (QtMsgType, const char *) |
Handler for qDebug() and friends. Writes message to log file at $USERDIR/log.txt and echoes to stderr. More... | |
static const QString & | getLog () |
Return a copy of text of the log file. More... | |
static QString | getLogFileName () |
static void | writeLog (QString msg) |
Write the message plus a newline to the log file at $USERDIR/log.txt. More... | |
Class wit only static members used to manage logging for Stellarium.
The debugLogHandler() method allow to defined it as a standard Qt messages handler which is then used by qDebug, qWarning and qFatal.
Definition at line 30 of file StelLogger.hpp.
|
static |
Handler for qDebug() and friends. Writes message to log file at $USERDIR/log.txt and echoes to stderr.
|
static |
Deinitialize the log file.
Must be called after init() was called.
|
inlinestatic |
Return a copy of text of the log file.
Definition at line 45 of file StelLogger.hpp.
|
static |
Create and initialize the log file.
Prepend system information before any debugging output.
|
static |
Write the message plus a newline to the log file at $USERDIR/log.txt.
msg | message to write. If you call this function the message will be only in the log file, not on the console like with qDebug(). |