Log::Mini - It's a very simple logger which can log your messages to a file or STDERR.
use Log::Mini; my $logger = Log::Mini->get_logger(); #STDERR logger used by default. Error is default log level $logger->error('Error message'); my $debug_logger = Log::Mini->get_logger('stderr', level => 'debug'); #STDERR logger used by default $debug_logger->error('Error message'); my $file_logger = Log::Mini->get_logger(file => 'log_file.log'); $file_logger->info('message to log file'); #prevent buffered output. May slow down your application! my $synced_file_logger = Log::Mini->get_logger(file => 'log_file.log', synced => 1);
Log::Mini is a very simple logger which can log your messages to a file or STDERR. You can have a number of loggers for various log files.
Copyright (C) Denis Fedoseev
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Denis Fedoseev <denis.fedoseev@gmail.com>
To install Log::Mini, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::Mini
CPAN shell
perl -MCPAN -e shell install Log::Mini
For more information on module installation, please visit the detailed CPAN module installation guide.