File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 44
44
"requires" : {
45
45
"Data::Dumper" : " 0" ,
46
46
"Test::Builder" : " 0" ,
47
+ "base" : " 0" ,
47
48
"perl" : " 5.006" ,
48
49
"strict" : " 0" ,
49
50
"warnings" : " 0"
72
73
"file" : " lib/Log/Any/Adapter/Test.pm" ,
73
74
"version" : " 0.16"
74
75
},
76
+ "Log::Any::Proxy" : {
77
+ "file" : " lib/Log/Any/Proxy.pm" ,
78
+ "version" : " 0.16"
79
+ },
80
+ "Log::Any::Proxy::Test" : {
81
+ "file" : " lib/Log/Any/Proxy/Test.pm" ,
82
+ "version" : " 0.16"
83
+ },
75
84
"Log::Any::Test" : {
76
85
"file" : " lib/Log/Any/Test.pm" ,
77
86
"version" : " 0.16"
Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ sub new {
34
34
35
35
sub init { }
36
36
37
+ sub adapter { return shift -> {adapter } }
38
+
37
39
my %aliases = Log::Any-> log_level_aliases;
38
40
39
41
# Set up methods/aliases and detection methods/aliases
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ use strict;
6
6
use warnings;
7
7
use Test::More tests => 2;
8
8
9
- use Log::Any qw( $log) ;
9
+ use Log::Any qw( $log) , proxy_class => ' Test ' ;
10
10
Log::Any-> set_adapter(' Test' , dummy_param => 1);
11
11
$log -> error(" bleah" );
12
12
$log -> contains_ok( qr / bleah/ );
13
- is ( $log -> {dummy_param }, 1, " adapter parameters set" );
13
+ is ( $log -> adapter -> {dummy_param }, 1, " adapter parameters set" );
You can’t perform that action at this time.
0 commit comments