Change *.log naming.

This commit is contained in:
2022-09-27 12:46:26 +03:00
parent 924c946be9
commit cd5252a473

View File

@@ -50,7 +50,7 @@ std::string GetDate() {
}
void TConsole::BackupOldLog() {
fs::path Path = "Server.log";
fs::path Path = "server.log";
if (fs::exists(Path)) {
auto OldLog = Path.filename().stem().string() + ".old.log";
try {
@@ -98,7 +98,7 @@ void TConsole::BackupOldLog() {
}
void TConsole::StartLoggingToFile() {
mLogFileStream.open("Server.log");
mLogFileStream.open("server.log");
Application::Console().Internal().on_write = [this](const std::string& ToWrite) {
// TODO: Sanitize by removing all ansi escape codes (vt100)
std::unique_lock Lock(mLogFileStreamMtx);