slackget::Log::logRotate - Perl extension for slack-get's log system


This module is use by slack-get for the log system


None, it's an Object Oriented module.

This module is really easy to use, it provide an OO interface to contain and process logs data.

There is only 2 methods : new and logRotate.

        my $lo_lr = slackget::Log::logRotate->new(
                SIZE_UNIT => 'mb',
                CRITICAL_SIZE => 5,
                AUTO_REMOVE => 1,
                LR_SEND_BY_FTP => 1,
                LR_SEND_BY_MAIL => 1,
                LR_MAIL_OPTIONS => {
                        mailto => $ENV{USER},
                        smtp => '',
                        mail_subject => "[slackget::Log] Log rotation",
                        mail_from => "slackget-Log\@$ENV{HOSTNAME}"
                LR_FTP_OPTIONS => {
                        login => 'anonymous',
                        password => "$ENV{USER}\@$ENV{HOSTNAME}",
                        server => '',
                        passive_mode => 0,
                        upload_dir => './'
                LR_COPY_TO => '/home/backup/logs/slackget/',
                LOG_FILE => $CONF{'log-file'}


This object is automaticaly instancied by slackget::Log if the use-log-rotation directive is enable.

Options LR_SEND_BY_*, AUTO_REMOVE and LR_COPY_TO can take undef or 1 as values. (undef -> option is disable). You might choose one or more rotation way.

If you choose to modify LR_MAIL_OPTIONS or LR_FTP_OPTIONS you might set all parameters !


slack-get(8), slack-get.conf(5), slack-plugins.conf(5)


Arnaud DUPUIS, <>


Copyright (C) 2004 by Arnaud DUPUIS

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.3 or, at your option, any later version of Perl 5 you may have available.