undefined warning was fixed
This commit is contained in:
parent
466dee9d39
commit
32bf8ee282
1 changed files with 3 additions and 1 deletions
|
@ -3,7 +3,7 @@ package Log::Mini;
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
our $VERSION = "0.0.1";
|
||||
our $VERSION = "0.0.2";
|
||||
|
||||
use Log::Mini::LoggerFILE;
|
||||
use Log::Mini::LoggerSTDERR;
|
||||
|
@ -12,6 +12,8 @@ sub new {
|
|||
my $class = shift;
|
||||
my ( $type, @args ) = @_;
|
||||
|
||||
$type = 'stderr' unless defined $type;
|
||||
|
||||
if ( $type eq 'file' ) {
|
||||
return Log::Mini::LoggerFILE->new(@args);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue