Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Limiting the size of log files...

by soonix (Prior)
on Nov 03, 2013 at 13:19 UTC ( #1061043=note: print w/replies, xml ) Need Help??

in reply to Limiting the size of log files...

In addition to ww's comment: the acto of transferring the data from the old log file to the new needs additional space, causes I/O and takes time. All three points could introduce more errors.

So, log rotation, as recommended by Anonymonk seems to be a far better strategy.

Replies are listed 'Best First'.
Re^2: Limiting the size of log files...
by SteveTheTechie (Novice) on Nov 03, 2013 at 23:15 UTC
    Good points. I will look at the module. If I think it is well written and well suited to the task, I will give it a go.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1061043]
[Eily]: I actually used the eskimo greeting :P, I just wrote the "canonical" form of the oneliner here
[Discipulus]: next time you can add `SARGV-1` and if still not impressed pass a 'rm -f..' as last arg
[Eily]: :)
[Eily]: or I might be tempted to send him an Acme::EyeDropsed file next time
[Eily]: Acme::Bleach is tempting, but it will look like I'm just using the one module that does precisely exactly what he wants

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2017-04-26 15:14 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (483 votes). Check out past polls.