How to add complete logs to your Rust server
A

Lead Engineer @ Packetware

How to add complete logs to your Rust server

Logging of all events in the cases of crashes or need to review information and data is crucial, here we will take a look at what you need to add in order to see complete logs.

Startup argument

Append this startup argument to your startup file or commands and you should be set.

-logfile "$(pwd)/logs/$(date +"%Y/%m/%d/%H:%M:%S").log"

This will create individual directories representing the time that a server was started and the logfile generated on that instance.