mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 04:57:58 +02:00
Change standard log file names from "hifi-.." to "vircadia-.."
This commit is contained in:
parent
8846e0e517
commit
95a64b2f2c
1 changed files with 3 additions and 3 deletions
|
@ -38,12 +38,12 @@ private:
|
||||||
QMutex _fileMutex;
|
QMutex _fileMutex;
|
||||||
};
|
};
|
||||||
|
|
||||||
static const QString FILENAME_FORMAT = "hifi-log_%1%2.txt";
|
static const QString FILENAME_FORMAT = "vircadia-log_%1%2.txt";
|
||||||
static const QString DATETIME_FORMAT = "yyyy-MM-dd_hh.mm.ss";
|
static const QString DATETIME_FORMAT = "yyyy-MM-dd_hh.mm.ss";
|
||||||
static const QString LOGS_DIRECTORY = "Logs";
|
static const QString LOGS_DIRECTORY = "Logs";
|
||||||
static const QString DATETIME_WILDCARD = "20[0-9][0-9]-[01][0-9]-[0-3][0-9]_[0-2][0-9]\\.[0-6][0-9]\\.[0-6][0-9]";
|
static const QString DATETIME_WILDCARD = "20[0-9][0-9]-[01][0-9]-[0-3][0-9]_[0-2][0-9]\\.[0-6][0-9]\\.[0-6][0-9]";
|
||||||
static const QString SESSION_WILDCARD = "[0-9a-z]{8}(-[0-9a-z]{4}){3}-[0-9a-z]{12}";
|
static const QString SESSION_WILDCARD = "[0-9a-z]{8}(-[0-9a-z]{4}){3}-[0-9a-z]{12}";
|
||||||
static QRegExp LOG_FILENAME_REGEX { "hifi-log_" + DATETIME_WILDCARD + "(_" + SESSION_WILDCARD + ")?\\.txt" };
|
static QRegExp LOG_FILENAME_REGEX { "vircadia-log_" + DATETIME_WILDCARD + "(_" + SESSION_WILDCARD + ")?\\.txt" };
|
||||||
static QUuid SESSION_ID;
|
static QUuid SESSION_ID;
|
||||||
|
|
||||||
// Max log size is 512 KB. We send log files to our crash reporter, so we want to keep this relatively
|
// Max log size is 512 KB. We send log files to our crash reporter, so we want to keep this relatively
|
||||||
|
@ -68,7 +68,7 @@ QString getLogRollerFilename() {
|
||||||
}
|
}
|
||||||
|
|
||||||
const QString& getLogFilename() {
|
const QString& getLogFilename() {
|
||||||
static QString fileName = FileUtils::standardPath(LOGS_DIRECTORY) + "hifi-log.txt";
|
static QString fileName = FileUtils::standardPath(LOGS_DIRECTORY) + "vircadia-log.txt";
|
||||||
return fileName;
|
return fileName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue