mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2026-02-16 09:00:41 +00:00
Change *.log naming.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user