BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => BeBot 0.2 support => Topic started by: TheGreatOne on October 07, 2005, 07:24:01 am

Title: Log parse
Post by: TheGreatOne on October 07, 2005, 07:24:01 am
Hi,

Is there a way to parse the Bebot log's? Theres way to much stuff in there and its not even on seperate line for different entries. Would be nice to have something to parse and clean the log to output something that is readable from what have been type in a private group.

thanks
Title: Log parse
Post by: Khalem on October 07, 2005, 03:20:44 pm
It is on separate lines actually, i suspect the problem is that you are using a text editor that doesnt understand unix newlines.

I cant recall if it was Windows Notepad or Wordpad that couldnt handle em, but in either case, just try using the opposite. It wont solve your parsing issue, but it will make the log readable.
Title: Log parse
Post by: Blondengy on October 07, 2005, 05:41:04 pm
Khalem is right. Notepad doesn't understand it. Use Wordpad to open the log and you'll get each entry on a new line.
Title: Log parse
Post by: TheGreatOne on October 08, 2005, 03:38:29 am
thanks..havent tought about this one. Not solving the parse thing but at least its way better.
Title: Log parse
Post by: Naturalistic on October 09, 2005, 08:37:30 am
Use a database to log instead :)
Title: Log parse
Post by: Blondengy on October 09, 2005, 09:59:32 am
99% of the time a log doesn't have to be looked at. It just sits there untill it gets deleted cause its to old anyway. :P So why usedatabase resources? I'm running a bot that creates daily plaintext logs of around 600kb to 1.5MB. Writing all that info into the would really bloat it up unnecesarily.
Due to the format of the log it should be really easy to write a little script that extracts only the information you need. Almost as easy as pulling it outof a DB. ;)
Title: Log parse
Post by: iriche on October 09, 2005, 06:06:16 pm
the log format is REAL easy, we got a front end written to parse it to the new beast bots admin interface ;P Easy like a pancake
SimplePortal 2.3.7 © 2008-2024, SimplePortal