2 |
## $Id$ |
## $Id$ |
3 |
## ------------------------------------------------------------------------ |
## ------------------------------------------------------------------------ |
4 |
## $Log$ |
## $Log$ |
5 |
|
## Revision 1.16 2003/04/18 16:07:53 joko |
6 |
|
## just use logger if instantiation successed |
7 |
|
## |
8 |
## Revision 1.15 2003/02/20 20:19:13 joko |
## Revision 1.15 2003/02/20 20:19:13 joko |
9 |
## tried to get auto-disconnect working again - failed with that |
## tried to get auto-disconnect working again - failed with that |
10 |
## |
## |
69 |
#use Data::Storage::Handler; |
#use Data::Storage::Handler; |
70 |
use Hash::Merge qw( merge ); |
use Hash::Merge qw( merge ); |
71 |
|
|
72 |
|
#use Log::Dispatch::Config; |
73 |
|
#Log::Dispatch::Config->configure(); |
74 |
|
|
75 |
# get logger instance |
# get logger instance |
76 |
my $logger = Log::Dispatch::Config->instance; |
my $logger; |
77 |
|
eval('$logger = Log::Dispatch::Config->instance;'); |
78 |
|
|
79 |
#our $lock_info; |
#our $lock_info; |
80 |
|
|
83 |
my $class = ref($invocant) || $invocant; |
my $class = ref($invocant) || $invocant; |
84 |
|
|
85 |
# logging info about the actual handler called |
# logging info about the actual handler called |
86 |
$logger->debug( "$invocant->new( @_ )" ); |
$logger->debug( "$invocant->new( @_ )" ) if $logger; |
87 |
#$logger->debug( __PACKAGE__ . "->" . "new()" ); |
#$logger->debug( __PACKAGE__ . "->" . "new()" ); |
88 |
|
|
89 |
# V1 - arguments become properties automagically / normal perl mode blessing |
# V1 - arguments become properties automagically / normal perl mode blessing |