NAME
Log::Facile - Perl extension for facile logging
SYNOPSIS
use Log::Facile;
my $logger = Log::Facile->new('/foo/var/log/tmp.log');
$logger->info('Log::Facile instance created!');
$logger->debug('flag off');
$logger->error('error occurred! detail.......');
$logger->set('debug_flag', 1);
$logger->debug('flag on');
This sample puts following logging.
2008/08/25 01:01:49 [INFO] Log::Facile instance created!
2008/08/25 01:01:49 [ERROR] error occurred! detail.......
2008/08/25 01:01:49 [DEBUG] flag on
Log swapping sample is following.
$logger->set('swap_dir', '/foo/var/log/old');
$logger->swap();
This time swapped log filename is 'tmp.log.1'. This file will be renamed 'tmp.log.2' while upcoming log swapping. I mean, the incremented number means older.
DESCRIPTION
Log::Facile provides so facile logging that is intended for personal tools.
AUTHOR
Kazuhiro Sera, <webmaster@seratch.net>
COPYRIGHT AND LICENSE
Copyright (C) 2008 by Kazuhiro Sera
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.8 or, at your option, any later version of Perl 5 you may have available.