Hello, i try to have logs from my Rust server based on time and date by adding -logfile "$(pwd)/logs/$(date +"%Y %m/%d/%H:%M:%S").log" on the Startup parameters. (i'm on Wisp)
Unfortunatly i only receive a 2021 log file. and this log file is overwritten by the server when i restart it. anyone can help me on this ? thanks !
Add date to logfile for rotation?Solved
ok, i fixed the command line: this one works perfectly:
-logfile "$(pwd)/logs/$(date +'%Y-%m-%d-%H:%M:%S').log"
with this, you have nice and clean logs of your console, organised by time and date in /logs
Locked automatically