Thanks for the complete answer

Unfortunately I need to store logs of channels with a lots of users, with new lines written on average every ~ 30 seconds.
My knowledge of the language script is limited, this was more a feature request that a request for help with the script.
Anyway i look around for some piece of code.
