/[cvs]/nfo/perl/libs/DesignPattern/Logger.pm
ViewVC logotype

Diff of /nfo/perl/libs/DesignPattern/Logger.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by joko, Tue May 13 08:40:15 2003 UTC revision 1.6 by joko, Fri Jun 6 03:19:09 2003 UTC
# Line 2  Line 2 
2  ##  $Id$  ##  $Id$
3  ## ------------------------------------------------------------------------  ## ------------------------------------------------------------------------
4  ##  $Log$  ##  $Log$
5    ##  Revision 1.6  2003/06/06 03:19:09  joko
6    ##  minor fixes
7    ##
8  ##  Revision 1.5  2003/05/13 08:40:15  joko  ##  Revision 1.5  2003/05/13 08:40:15  joko
9  ##  minor update: renamed attribute  ##  minor update: renamed attribute
10  ##  ##
# Line 43  Line 46 
46  ## ------------------------------------------------------------------------  ## ------------------------------------------------------------------------
47    
48    
49    =pod
50    
51      This is weird! Forget it.
52      But we depend on it!
53      Hmmm....
54    
55    
56    =cut
57    
58    
59  package DesignPattern::Logger;  package DesignPattern::Logger;
60    
61  use strict;  use strict;
# Line 134  sub __init { Line 147  sub __init {
147          foreach (@{$METHOD_LEVELS}) {          foreach (@{$METHOD_LEVELS}) {
148            (my $c_package, my $c_filename, my $c_line, my $c_subroutine, my $c_hasargs,            (my $c_package, my $c_filename, my $c_line, my $c_subroutine, my $c_hasargs,
149            my $c_wantarray, my $c_evaltext, my $c_is_require, my $c_hints, my $c_bitmask) = caller($_);            my $c_wantarray, my $c_evaltext, my $c_is_require, my $c_hints, my $c_bitmask) = caller($_);
150              $c_subroutine ||= '';
151            $c_subroutine =~ s/.*:://;            $c_subroutine =~ s/.*:://;
152            push @methods, $c_subroutine;            push @methods, $c_subroutine;
153          }          }
154          $calling_sub = join(': ', @methods);          $calling_sub = join(': ', @methods) if @methods;
155        }        }
156        
157            

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed