SquadJS icon indicating copy to clipboard operation
SquadJS copied to clipboard

Logger timestamps

Open Steezycoding opened this issue 3 years ago • 1 comments

What is the issue, e.g. map voting, you would like to solve?

Logs have no timestamp yet. It would be very useful to debug some stuff especially when you need to match Squad server and SquadJS outputs.

How would you like us to solve this issue?

It would be great to implement an option in config.json OR a parameter to pass to Logger.verbose() method to activate/deactivate timestamps.

e.g. Logger.verbose(,,, true|false);

Steezycoding avatar Feb 23 '22 08:02 Steezycoding

Should probably just add it to the logger and not worry about the config or parameter - it's not something people are going to strongly disagree with using and it's not a good idea to manage it per logline.

Thomas-Smyth avatar Feb 23 '22 11:02 Thomas-Smyth