QtCraft API C++ classes QML types Handbook

QcDiagnosticsOptions Struct

The command line options of logging, crash reports and the health line, shared by qtcraft and qtcraft-headless. More...

Header: #include <common/diagnostics/QcDiagnosticsOptions.h>

Public Functions

QList<QCommandLineOption> all() const
QcResult<QcDiagnosticsSetup> read(const QCommandLineParser &parser) const

Public Variables

QCommandLineOption crashTest
QCommandLineOption fullDump
QCommandLineOption healthLog
QCommandLineOption logFile
QCommandLineOption logRules
QCommandLineOption noLogFile

Static Public Members

const int maxHealthSeconds

Detailed Description

Member Function Documentation

QList<QCommandLineOption> QcDiagnosticsOptions::all() const

Returns all six options, to add them to a parser.

QcResult<QcDiagnosticsSetup> QcDiagnosticsOptions::read(const QCommandLineParser &parser) const

Returns the options of the parsed command line parser; the error names a bad value.

Member Variable Documentation

QCommandLineOption QcDiagnosticsOptions::crashTest

–crash-test, hidden from the help

QCommandLineOption QcDiagnosticsOptions::fullDump

–full-dump

QCommandLineOption QcDiagnosticsOptions::healthLog

–health-log

QCommandLineOption QcDiagnosticsOptions::logFile

–log-file

QCommandLineOption QcDiagnosticsOptions::logRules

–log-rules

const int QcDiagnosticsOptions::maxHealthSeconds

The longest interval –health-log takes: a day.

QCommandLineOption QcDiagnosticsOptions::noLogFile

–no-log-file