Raised This Month: $51 Target: $400
 12% 

Sourcemod remove time stamps in logs?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
J_Tanzanite
Senior Member
Join Date: Aug 2018
Location: Norway
Old 08-07-2018 , 16:07   Sourcemod remove time stamps in logs?
Reply With Quote #1

I've tried to find out how to turn off the time stamps in logs, but I haven't been able to find any command of any sort that can do this.

The timestamps I am talking about look like this:
L 09/03/2017 - 10:10:06:

And they are in all logs, including errors, people joining/leaving, plugins etc.
I've tried to google and search for this for hours now, is it even possible to remove them?
J_Tanzanite is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 08-07-2018 , 16:10   Re: Sourcemod remove time stamps in logs?
Reply With Quote #2

Why do you want to remove the timestamps from all logs?
__________________
asherkin is offline
J_Tanzanite
Senior Member
Join Date: Aug 2018
Location: Norway
Old 08-07-2018 , 16:20   Re: Sourcemod remove time stamps in logs?
Reply With Quote #3

Because I think they are a waste of space and I do not care at what time something happened.
In addition to me not wanting time stamps, it also uses a format I don't like, I prefer year/month/day.
J_Tanzanite is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 08-07-2018 , 16:22   Re: Sourcemod remove time stamps in logs?
Reply With Quote #4

I'm afraid it is not configurable.
__________________
asherkin is offline
J_Tanzanite
Senior Member
Join Date: Aug 2018
Location: Norway
Old 08-07-2018 , 16:24   Re: Sourcemod remove time stamps in logs?
Reply With Quote #5

Wait, are you telling me timestamps are hard coded into sourcemod? :'D
Do I really need to recompile sourcemod to remove this?
J_Tanzanite is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 08-07-2018 , 16:32   Re: Sourcemod remove time stamps in logs?
Reply With Quote #6

Yes, find all the strftime calls in core/logic/Logger.cpp
__________________
asherkin is offline
J_Tanzanite
Senior Member
Join Date: Aug 2018
Location: Norway
Old 08-07-2018 , 16:34   Re: Sourcemod remove time stamps in logs?
Reply With Quote #7

I guess this means this question is now solved. Thanks for the quick replies!
J_Tanzanite is offline
nosoop
Veteran Member
Join Date: Aug 2014
Old 08-07-2018 , 18:56   Re: Sourcemod remove time stamps in logs?
Reply With Quote #8

I'm actually surprised this isn't handled with sm_datetime_format (though that is clearly described as for clients in sourcemod.cfg).
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)
nosoop is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 08-07-2018 , 19:02   Re: Sourcemod remove time stamps in logs?
Reply With Quote #9

Quote:
Originally Posted by nosoop View Post
I'm actually surprised this isn't handled with sm_datetime_format (though that is clearly described as for clients in sourcemod.cfg).
It intentionally matches the SRCDS log format for compatibility with log processing tooling, and the SRCDS log timestamp format is not configurable (SM would respect the same configuration if it existed).
__________________
asherkin is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode