Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

allowing method chaining and whatnot

This should fix RT #78924 by Bob Stockdale (thanks for reporting!)
  • Loading branch information...
commit d49c2508c470958425be6f63c833f22987fe9d7b 1 parent 6971479
@garu authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/MojoX/Log/Log4perl.pm
View
4 lib/MojoX/Log/Log4perl.pm
@@ -50,9 +50,11 @@ sub new {
*{ __PACKAGE__ . "::$level" } =
sub {
+ my $self = shift;
local $Log::Log4perl::caller_depth =
$Log::Log4perl::caller_depth + 1;
- shift->_get_logger->$level(@_);
+ $self->_get_logger->$level(@_);
+ return $self;
};
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.