Readme update

This commit is contained in:
Denis Fedoseev 2019-02-22 10:57:14 +03:00
parent 32bf8ee282
commit 9586b33228
2 changed files with 8 additions and 4 deletions

View file

@ -6,9 +6,11 @@ Log::Mini - It's a very simple logger which can log your messages to a file or S
use Log::Mini;
my $logger = Log::Mini->get_logger(); #STDERR logger used by default
$logger->warn('Very important message');
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');

View file

@ -38,9 +38,11 @@ Log::Mini - It's a very simple logger which can log your messages to a file or S
use Log::Mini;
my $logger = Log::Mini->get_logger(); #STDERR logger used by default
$logger->warn('Very important message');
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');