Merge pull request #343 from jug007/hifi-log

Change log file name to "vircadia-.."
This commit is contained in:
daleglass 2020-05-13 23:01:50 +02:00 committed by GitHub
commit 96905d0341
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,12 +38,12 @@ private:
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 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 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;
// 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() {
static QString fileName = FileUtils::standardPath(LOGS_DIRECTORY) + "hifi-log.txt";
static QString fileName = FileUtils::standardPath(LOGS_DIRECTORY) + "vircadia-log.txt";
return fileName;
}