Skip navigation.

Log in | Sign up

unBlogged

Click here, click there, click everywhere

Opera Chat log analyzer

, , , , , ,

Hello!

Did you know you can enable logging in Opera Chat? It works with Opera 8 and 9. Perhaps with Opera 7 too (I am not sure).

To enable logging for Opera Chat edit your mail/accounts.ini file and add/change:
Incoming Log File=c:\path\to\your_file.log

... for the [account] you want.

The generated log is debug mode, almost unreadable by humans. Plus, it's a single file: no separate files for private messages or channels.

Because of this I have made script that parses the log and generates human readable files.

One tiny problem: Opera does not include the log start/end date (only the time), which forces me to guess the log date. Log date guessing works by catching all UNIX timestamps sent by the IRC server :smile:, user signon, topic date, etc.

The script creates files for private chats, channels and one $server file

For one file of 166.4 MB on AMD Duron 1.3ghz 512MB RAM with 7200 RPM HDD running Ubuntu 6.06 Linux, PHP 5.1.2 ... parsing took about 5 minutes. The script generated 135 files (12.3 MB). Average speed: 502 KB/s.

For this release I have optimized the code for better speed, initially this script was 3 times slower.

The script was tested on irc.opera.com and irc.freenode.net.

The output is text, not HTML.

Generally the script should run fine, but you can easily brake it. If you improve the script please send the updated file to me.

You need only PHP, nothing else. It probably works with PHP 4 too (I only tested with PHP 5.1).

Download the script

Rename the file to .php. Uploaded as .txt to avoid conflicts.

Thanks and let me know if you find this useful. Any comments suggestions are welcome!

Opera 10+ wishlist(Why) RSS is crap

Comments

btipling 10. August 2006, 07:01

Gah, no real logs though. What a silly thing to leave out. :frown:

robodesign 10. August 2006, 09:16

True. No real logs. However, with my script I was able to get real logs. It was very useful for me :smile:.

dantesoft 13. September 2006, 13:37

I have a script sitting somewhere, which cuts out the server messages (the minute by minute ISON, et cetera) and the filesize. This looks promising. GPL ?

robodesign 13. September 2006, 14:43

No, not GPL.

It's CC by-nc-nd 2.5.

File updated, thanks for remembering me.

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies

Download Opera, the fastest and most secure browser