Page 1 of 1

[0.13] Add [CHAT] infront of the playername in the log file

Posted: Mon Jun 27, 2016 9:54 pm
by NoPantsMcDance
@OxyD please add [CHAT] before any chat in the log file thanks <3

Re: Add [CHAT] infront of the playername in the log file

Posted: Mon Jun 27, 2016 9:56 pm
by Bisa
adding to this, it would be super helpful to also post a utc time stamp on the same line so we know when this happened without having to calculate game tics since start ;)

Re: Add [CHAT] infront of the playername in the log file

Posted: Mon Jun 27, 2016 9:58 pm
by Kovus
I second this, but I'd like for it to be taken a step further, and have it include timestamps like the rest of the server output:

Something like this:
mm:ss [CHAT] username: message message message ipsum something blah.

Re: Add [CHAT] infront of the playername in the log file

Posted: Mon Jun 27, 2016 10:00 pm
by ssilk
Phantastic idea! (hehe I read the chat guys)

A good question here is also if everything should be logged. Levels of logging, if you know what I mean.

Re: [0.13] Add [CHAT] infront of the playername in the log file

Posted: Thu Jul 21, 2016 1:12 pm
by Oxyd
Alright, implemented. I also added other message tags like [KICK], [BAN] or [COMMAND], because why not.

The output now looks like this:

Code: Select all

2016-07-21 15:05:38 [CHAT] Oxyd: Hi
2016-07-21 15:05:49 [KICK] Oxyd was kicked by Oxyd. Reason: unspecified.
2016-07-21 15:07:02 [DEMOTE] Foo failed to demote player Oxyd (not an admin).
2016-07-21 15:07:10 [PROMOTE] Foo was promoted to admin by Oxyd.
2016-07-21 15:07:14 [BAN] Foo was banned by Oxyd. Reason: unspecified.

Re: [0.13] Add [CHAT] infront of the playername in the log file

Posted: Fri Jul 22, 2016 9:13 am
by Bisa
thumbs up