mIRC Home    About    Download    Register    News    Help

Print Thread
#219350 14/03/10 02:09 PM
3
3ul3r0
3ul3r0
3
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)

#219356 15/03/10 12:34 AM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
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.

Riamus2 #219370 15/03/10 07:31 AM
3
3ul3r0
3ul3r0
3
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

#219375 15/03/10 12:51 PM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
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.

Riamus2 #219379 15/03/10 05:44 PM
3
3ul3r0
3ul3r0
3
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

#219380 15/03/10 06:02 PM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
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.


Link Copied to Clipboard