Skip to content

Commit

Permalink
add set_adapter for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jonswar committed Oct 27, 2009
1 parent 6e220fc commit c50c6d9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/Log/Any.pm
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ sub detection_methods { @detection_methods }
sub detection_aliases { @detection_aliases }
sub logging_and_detection_methods { @logging_and_detection_methods }

# For backward compatibility
sub set_adapter {
my $class = shift;
require Log::Any::Adapter;
Log::Any::Adapter->set(@_);
}

1;

__END__
Expand Down

0 comments on commit c50c6d9

Please sign in to comment.