From 9586b332289e735d0da5a83f1349de5af5509469 Mon Sep 17 00:00:00 2001 From: Denis Fedoseev Date: Fri, 22 Feb 2019 10:57:14 +0300 Subject: [PATCH] Readme update --- README.md | 6 ++++-- lib/Log/Mini.pm | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f107ed7..bc74741 100644 --- a/README.md +++ b/README.md @@ -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'); diff --git a/lib/Log/Mini.pm b/lib/Log/Mini.pm index 2c692e7..2df2468 100644 --- a/lib/Log/Mini.pm +++ b/lib/Log/Mini.pm @@ -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');