mIRC Homepage
Posted By: 3ul3r0 buffer for log - 14/03/10 02:09 PM
Since mIRC continued access to Hard Disk for writing logs, there is a way to put a timer for regulate the emptying of the logs buffer before writing in the Hard Disk ?

For example, with a timer set to 15 minutes, the logs stored in buffer (ram) are written to HD every 15 minutes.

is there already or do I make a request in the section "feature request"?

(sorry for my english)
Posted By: Riamus2 Re: buffer for log - 15/03/10 12:34 AM
Custom logging can be accomplished through scripts and can be set to write however often you want. There may be scripts already for that or one may need to be written.
Posted By: 3ul3r0 Re: buffer for log - 15/03/10 07:31 AM
can you give me some suggestions? where to start looking? I think this script is not so common, I've never seen to delay the save of the log.

10x smile
Posted By: Riamus2 Re: buffer for log - 15/03/10 12:51 PM
Sites like mircscripts.org or Hawkeye have a lot of scripts. I don't know if they have something like what you're looking for. If not, maybe someone here is willing to write up something, but usually people here will help with problems someone has when they are writing their own script instead of writing the entire script for someone.

As for a general idea of how it might work, you might just have a script echo lines from channels/queries/etc to hidden @windows and then every time a /timer triggers, /write it to disk and clear the window and repeat.

Keep in mind that any method to delay writing of logs can, and most likely will, cause lost data if mIRC crashes or quits without having a chance to write the stored logged data beforehand.

What is probably a better option is to just not log any channels that you don't need logs of. Stick to logging only important channels, which in most cases don't have a lot of text coming in. This helps to reduce hard drive access because you're not updating logs very often if the channels you log don't include a lot of text.
Posted By: 3ul3r0 Re: buffer for log - 15/03/10 05:44 PM
Thanks for the complete answer smile
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. smile
Posted By: Riamus2 Re: buffer for log - 15/03/10 06:02 PM
If you'd like to see it as a feature, I'd recommend posting it to the feature request forum so that it doesn't get "lost" in this forum.
© mIRC Discussion Forums