Vulcan::RRLogDir - Round Robin Log Directory
use Vulcan::RRLogDir; my $rrld = Vulcan::RRLogDir->new( @logdir ); $rrld->purge ( count => 20, ## default 10 regex => qr/^foobar/, size => '100MB', age => '10days', );
Purge files according to %param. Returns invoking object.
regex: pattern of file name. count: number of files to keep. size: total file size. age: age of file.
Convert an $expr of $type to a number of base units. $type can be
time: base unit 1 second, units can be
s[econd] m[inutea h[our] d[ay] w[eek]
size: base unit 1 byte, units can be B K M G T P E Z Y
An expression may consist of multiple units, e.g.
'2h,3m,20s' or '2MB 10K'
To install pantheon, copy and paste the appropriate command in to your terminal.
cpanm
cpanm pantheon
CPAN shell
perl -MCPAN -e shell install pantheon
For more information on module installation, please visit the detailed CPAN module installation guide.