Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions eg/L4pResurrectable.pm
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package L4pResurrectable;
use Log::Log4perl qw(:easy);
use vars qw($VERSION);

$VERSION = "0.01";
our $VERSION = "0.01";

sub foo {
###l4p DEBUG "foo was here";
Expand Down
9 changes: 4 additions & 5 deletions lib/Log/Log4perl/Level.pm
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@ use constant FATAL_INT => 50000;
use constant OFF_INT => (2 ** 31) - 1;

no strict qw(refs);
use vars qw(%PRIORITY %LEVELS %SYSLOG %L4P_TO_LD);

%PRIORITY = (); # unless (%PRIORITY);
%LEVELS = () unless (%LEVELS);
%SYSLOG = () unless (%SYSLOG);
%L4P_TO_LD = () unless (%L4P_TO_LD);
our %PRIORITY = (); # unless (%PRIORITY);
our %LEVELS = () unless (%LEVELS);
our %SYSLOG = () unless (%SYSLOG);
our %L4P_TO_LD = () unless (%L4P_TO_LD);

sub add_priority {
my ($prio, $intval, $syslog, $log_dispatch_level) = @_;
Expand Down