Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Comprehensive Logging Option (Delimited)  (Read 717 times)

idgarad

  • Bay Watcher
    • View Profile
Comprehensive Logging Option (Delimited)
« on: August 12, 2014, 09:31:49 am »

To better parse logging, taking a cue from Apache and Linux a logging option that is delimited for use, in real time if needed (using fifo redirects for example) of gameplay in the format of:

TIMESTAMP,CIV,SITE,LOGGINGLEVEL,EVENTTYPE,SOURCE, OUTPUT

It would allow better parsing outside of the XML export of gameplay or archiving in SQL.

Rather then:

The Stray Dog misses The Honey Badger!
The Stray Dog attacks The Honey Badger but He jumps away!

We get:

TIMESTAMP, The Golden Hammers, Erivath, COMBAT, The Stray Dog, "The Stray Dog misses The Honey Badger!"
TIMSTAMP, The Golden Hammers, Erivath, COMBAT, The Stray Dog, "The Stray Dog attacks The Honey Badger but He jumps away!"


This allows for the archiving of gameplay to SQL for use on web sites that perhaps want to maintain stats.

In addition at configurable intervals a dump of inventory e.g.:

TIMESTAMP, The Golden Gammers, Erivath, INVENTORY, Stone, Obsidian Stone:135


this allows for simple SQL import so a web site for example could do a live feed of gameplay.
Logged