Merge pull request #397 from skyedeving/rename-log

Set log filename to a more sortable format
This commit is contained in:
oldmud0 2021-01-11 11:54:21 -06:00 committed by GitHub
commit d54d1c1b72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -286,7 +286,7 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
if (AOApplication::get_auto_logging_enabled()) {
this->log_filename = QDateTime::currentDateTime().toUTC().toString(
"'logs/" + server_name.remove(QRegExp("[\\\\/:*?\"<>|\']")) +
"/'ddd MMMM yyyy hh.mm.ss t'.log'");
"/'yyyy-MM-dd hh-mm-ss t'.log'");
this->write_to_file("Joined server " + server_name + " on address " +
server_address + " on " +
QDateTime::currentDateTime().toUTC().toString(),