|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <LogManager.h>
Inheritance diagram for LogManager:
Collaboration diagram for LogManager:Signals | |
| void | hasErrorChanged () |
| void | lastErrorChanged () |
| void | writeStarted () |
| void | writeFinished (bool success) |
Public Member Functions | |
| ~LogManager () | |
| void | init () |
| LogModel * | model () |
| bool | hasError () const |
| QString | lastError () const |
| void | setLogDirectory (const QString &path) |
| QString | logDirectory () const |
| Q_INVOKABLE void | writeMessages (const QString &destFile) |
| Q_INVOKABLE void | clearError () |
| Q_INVOKABLE void | flush () |
Static Public Member Functions | |
| static LogManager * | instance () |
| static LogManager * | create (QQmlEngine *qmlEngine, QJSEngine *jsEngine) |
| static void | installHandler () |
| static void | applyEnvironmentLogLevel () |
| static void | setCaptureEnabled (bool enabled) |
| static void | clearCapturedMessages () |
| static QList< LogEntry > | capturedMessages (const QString &category={}) |
| static bool | hasCapturedMessage (const QString &category, LogEntry::Level level) |
| static bool | hasCapturedWarning (const QString &category) |
| static bool | hasCapturedCritical (const QString &category) |
| static bool | hasCapturedUncategorizedMessage () |
| static void | captureIfEnabled (QtMsgType type, const QMessageLogContext &context, const QString &msg) |
Definition at line 19 of file LogManager.h.
| LogManager::~LogManager | ( | ) |
Definition at line 102 of file LogManager.cc.
References QGCFileWriter::close(), and s_instance.
|
static |
Definition at line 132 of file LogManager.cc.
Referenced by main().
|
static |
Definition at line 466 of file LogManager.cc.
References s_capturedMessages, and s_captureMutex.
|
static |
Definition at line 515 of file LogManager.cc.
References s_capturedMessages, s_captureEnabled, and s_captureMutex.
|
static |
Definition at line 460 of file LogManager.cc.
References s_capturedMessages, and s_captureMutex.
| void LogManager::clearError | ( | ) |
Definition at line 318 of file LogManager.cc.
References hasErrorChanged(), and lastErrorChanged().
|
static |
Definition at line 74 of file LogManager.cc.
References instance().
| void LogManager::flush | ( | ) |
Definition at line 328 of file LogManager.cc.
References QGCFileWriter::flush().
|
static |
Definition at line 499 of file LogManager.cc.
References LogEntry::Critical, and hasCapturedMessage().
|
static |
Definition at line 483 of file LogManager.cc.
References s_capturedMessages, and s_captureMutex.
Referenced by hasCapturedCritical(), and hasCapturedWarning().
|
static |
Definition at line 504 of file LogManager.cc.
References s_capturedMessages, and s_captureMutex.
|
static |
Definition at line 494 of file LogManager.cc.
References hasCapturedMessage(), and LogEntry::Warning.
|
inline |
Definition at line 43 of file LogManager.h.
|
signal |
Referenced by clearError().
| void LogManager::init | ( | ) |
Definition at line 164 of file LogManager.cc.
References SettingsManager::appSettings(), SettingsManager::instance(), SettingsManager::logManagerSettings(), Fact::rawValueChanged(), LogModel::rowCount(), AppSettings::savePathsChanged(), setLogDirectory(), and LogEntry::TimestampColumn.
Referenced by QGCApplication::init().
|
static |
Definition at line 121 of file LogManager.cc.
References s_defaultHandler, and s_instance.
Referenced by main().
|
static |
Definition at line 69 of file LogManager.cc.
References s_instance.
Referenced by create(), QGCApplication::init(), and main().
|
inline |
Definition at line 45 of file LogManager.h.
|
signal |
Referenced by clearError().
|
inline |
Definition at line 49 of file LogManager.h.
|
inline |
Definition at line 41 of file LogManager.h.
|
static |
Definition at line 455 of file LogManager.cc.
References s_captureEnabled.
| void LogManager::setLogDirectory | ( | const QString & | path | ) |
Definition at line 358 of file LogManager.cc.
References QGCFileWriter::setFilePath().
Referenced by init().
|
signal |
| void LogManager::writeMessages | ( | const QString & | destFile | ) |
Definition at line 416 of file LogManager.cc.
References LogModel::allEntriesSnapshot().
|
signal |