warning was fixed
This commit is contained in:
parent
bcbaf5e75d
commit
14ceae7db7
2 changed files with 5 additions and 5 deletions
|
@ -16,7 +16,7 @@ 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');
|
||||
|
|
|
@ -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