warning was fixed
This commit is contained in:
parent
bcbaf5e75d
commit
14ceae7db7
2 changed files with 5 additions and 5 deletions
|
@ -16,17 +16,17 @@ Log::Mini - It's a very simple logger which can log your messages to a file or S
|
|||
$file_logger->info('message to log file');
|
||||
|
||||
#prevent buffered output. May slow down your application!
|
||||
my $synced_file_logger = Log::Mini->new(file => 'log_file.log', synced => 1);
|
||||
my $synced_file_logger = Log::Mini->get_logger(file => 'log_file.log', synced => 1);
|
||||
|
||||
#format message with sprintf
|
||||
$logger->info('Message with %s %s', 'some', 'additional info');
|
||||
|
||||
#log method for better compatibility
|
||||
$logger->log('info', 'information message');
|
||||
|
||||
|
||||
#Null logger - drops all messages to /dev/null
|
||||
my $logger = Log::Mini->new('null);
|
||||
$logger->error('Error message'); #Message will be dropped
|
||||
my $logger = Log::Mini->new('null);
|
||||
$logger->error('Error message'); #Message will be dropped
|
||||
|
||||
# DESCRIPTION
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ sub new {
|
|||
}
|
||||
elsif ( $type eq 'null' ) {
|
||||
require Log::Mini::LoggerNULL;
|
||||
return Log::Mini::LoggerNULL->new(@_);
|
||||
return Log::Mini::LoggerNULL->new(@args);
|
||||
}
|
||||
else {
|
||||
require Log::Mini::LoggerSTDERR;
|
||||
|
|
Loading…
Reference in a new issue