If anyone of you are running my open source chat script, I have developed a very basic chat logger so you can easily pull back all the messages for each day.

Source: (Contains very basic optimisation, and simple structure)
http://hellosimplicity.com/chatlogger.phps

Preview:
http://hellosimplicity.com/logger.png

(And yes it doesn't parse the messages smilies or links, you can edit that though)