Author Topic: Request: Year/month/day in each log line  (Read 3569 times)

SpeedUSA

  • PGP
  • Posts: 36
Request: Year/month/day in each log line
« on: September 15, 2011, 03:41:47 PM »
Right now, the logs record the date only at midnight:

[********] Date: 2011-09-15

And each line now includes only the hour/minute/second:

[18:12:15] == Map Loaded: mystique ==

I propose that each line also include year/month/day:

[2011:09:15:18:12:15] == Map Loaded: mystique ==

This would allow better analysis of server use. I'm using SQL queries to ID popular maps, high-use times, frequent users, etc.

Thanks!

LongShot

jitspoe

  • Administrator
  • Autococker
  • Posts: 18801
Re: Request: Year/month/day in each log line
« Reply #1 on: February 15, 2012, 02:15:36 PM »
Sorry for the late response.  Added this to the feature vote list: http://dplogin.com/dplogin/featurevote/feature.php?id=10288

xrichardx

  • 68 Carbine
  • Posts: 295
Re: Request: Year/month/day in each log line
« Reply #2 on: May 23, 2015, 12:11:12 PM »
Done, I uploaded the modified common.c to the repository.

cvar: timestamp_date - if set to 1, the timestamp format will be [YY-MM-DD HH:MM:SS]

jitspoe

  • Administrator
  • Autococker
  • Posts: 18801
Re: Request: Year/month/day in each log line
« Reply #3 on: July 22, 2015, 09:40:28 PM »
Thanks again for your contributions.  This should be available for use soon.