Author Topic: New format for log files.  (Read 870 times)

0 Members and 1 Guest are viewing this topic.

Offline Clawbug

  • Veteran
  • *****
  • Posts: 1393
  • 1184!
New format for log files.
« on: December 19, 2006, 11:27:18 am »
The way current console logs are written, it is kinda easy to fool the log parsers.
With current system, you can actually get caps, joins, disconnects, leaves for yourself, just by talking. This is why for example, Zitro-Stats do not have CTF stats.

So, I suggest that the way logs are written will be changed a little.


Current way:
06-12-18 22:37:31 NF|Clawbug has joined bravo team

06-12-18 22:45:06 (TEAM)[NF|sYn4t!Ck] -! Fag with flag escaping: UP !-
06-12-18 22:45:15 =SF=|WsJoke [CH] scores for Bravo Team
06-12-18 22:45:30 (TEAM)[NF|sYn4t!Ck] -! Enemy incoming: MID !-
06-12-18 22:45:33 =SF=|WsJoke [CH] captured the Red Flag
06-12-18 22:45:37 NF|sYn4t!Ck returned the Red Flag


Modified way:
06-12-18 22:37:31 Join bravo team: NF|Clawbug

06-12-18 22:45:06 Teamchat: [NF|sYn4t!Ck] -! Fag with flag escaping: UP !-
06-12-18 22:45:15 Bravo team scoring: =SF=|WsJoke [CH]
06-12-18 22:45:30 Teamchat: [NF|sYn4t!Ck] -! Enemy incoming: MID !-
06-12-18 22:45:33 Red flag capture: =SF=|WsJoke [CH]
06-12-18 22:45:37 Red flag return: NF|sYn4t!Ck



So, putting the lines after the nick to before the nick could do the trick better, IMO.

Tho, this is the consolelog file, and there is written what we see in the console. So, there could be alternative file for events like this aswell.

Third option woulc be to write some simple server script. :P
Fight! Win! Prevail!

Offline -WildBill-

  • Camper
  • ***
  • Posts: 360
  • Extra-Medium
Re: New format for log files.
« Reply #1 on: December 23, 2006, 10:59:59 am »
its simple, effective, and looks like it'd be easy to implement. though i dont think that i personally would have much use for it, i like it!
lol siggeh deleted for the 7th time! that's like a new record or something, ain't it?

Offline Toumaz

  • Veteran
  • *****
  • Posts: 1906
Re: New format for log files.
« Reply #2 on: December 23, 2006, 11:08:22 am »
The thing is that this would need many statistic scripts to be edited. I do not know if the extra protection against exploits here would really weigh as heavy as the need to edit the code. And I can also imagine that throwing out the exploiters from the database would be a tad easier.

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: New format for log files.
« Reply #3 on: December 23, 2006, 01:43:29 pm »
I like the modification more than how it is currently, and I doubt it would be hard to implement.

But what would be even be better is if Soldat used XML for logs.
There are other worlds than these