0bd73580aa
Changelog diff is: diff --git a/Changes b/Changes index b732829..0a53712 100644 --- a/Changes +++ b/Changes @@ -2,6 +2,9 @@ Revision history for Perl extension Log-Mini {{$NEXT}} +0.1.1 2019-03-19T20:44:04Z + - Error in the constructor was fixed. 0.1.0 removed from CPAN. + 0.1.0 2019-03-19T12:08:23Z - Supports formatted with sprintf messages - log method was added
22 lines
No EOL
519 B
Perl
22 lines
No EOL
519 B
Perl
use lib 'lib';
|
|
use strict;
|
|
use warnings;
|
|
|
|
use Test::More;
|
|
use Test::Fatal;
|
|
use File::Temp;
|
|
use Log::Mini;
|
|
|
|
|
|
|
|
subtest 'creates correct object LoggerFILE' => sub {
|
|
my $file = File::Temp->new;
|
|
isa_ok(Log::Mini->new( file => $file->filename), 'Log::Mini::LoggerFILE');
|
|
};
|
|
|
|
subtest 'creates correct object LoggerSTDERR' => sub {
|
|
isa_ok(Log::Mini->new('stderr', level => 'debug'), 'Log::Mini::LoggerSTDERR');
|
|
isa_ok(Log::Mini::LoggerSTDERR->new(level => 'debug'), 'Log::Mini::LoggerSTDERR');
|
|
};
|
|
|
|
done_testing; |