![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <logger.h>
Signals | |
| void | logEntryAdded (const QString &message) |
Public Member Functions | |
| void | logToFile (bool enabled) |
| void | log (QtMsgType type, const QMessageLogContext &ctx, const QString &message) |
| QString | getClientVersion () |
| QString | getClientOperatingSystem () |
| QString | getSystemArchitecture () |
| QString | getSystemLocale () |
| QString | getClientInstallInfo () |
| QList< QString > | getLogBuffer () |
| void | setPersistentLogPath (const QString &path) |
| QList< QString > | getPreviousSessionTail (int maxLines=60) const |
Static Public Member Functions | |
| static Logger & | getInstance () |
| static QList< QString > | extractPreviousSessionTail (const QString &filePath, int maxLines=60) |
Protected Slots | |
| void | internalLog (const QString &message) |
Protected Member Functions | |
| void | openLogfileSession () |
| void | closeLogfileSession () |
| void | openPersistentLog (const QString &path) |
| void | prunePersistentLog (const QString &path) |
| void | closePersistentLogSession () |
Private Member Functions | |
| Logger () | |
| ~Logger () override | |
| Logger (Logger const &) | |
| void | operator= (Logger const &) |
Private Attributes | |
| bool | logToFileEnabled |
| QTextStream | fileStream |
| QFile | fileHandle |
| QList< QString > | logBuffer |
| QMutex | mutex |
| QString | persistentLogPath |
| bool | persistentLogEnabled |
| QTextStream | persistentFileStream |
| QFile | persistentFileHandle |
|
private |
|
overrideprivate |
|
private |
|
protected |
|
protected |
|
static |
| QString Logger::getClientInstallInfo | ( | ) |
| QString Logger::getClientOperatingSystem | ( | ) |
| QString Logger::getClientVersion | ( | ) |
|
inlinestatic |
|
inline |
| QList< QString > Logger::getPreviousSessionTail | ( | int | maxLines = 60 | ) | const |
| QString Logger::getSystemArchitecture | ( | ) |
| QString Logger::getSystemLocale | ( | ) |
|
protectedslot |
| void Logger::log | ( | QtMsgType | type, |
| const QMessageLogContext & | ctx, | ||
| const QString & | message ) |
|
signal |
| void Logger::logToFile | ( | bool | enabled | ) |
|
protected |
|
protected |
|
private |
|
protected |
| void Logger::setPersistentLogPath | ( | const QString & | path | ) |
|
private |
|
private |
|
private |
|
private |
|
mutableprivate |
|
private |
|
private |
|
private |
|
private |