Skip to content

Commit

Permalink
add slog functions to be exportable
Browse files Browse the repository at this point in the history
  • Loading branch information
Grinnz committed Dec 10, 2017
1 parent 22c3d48 commit e2fdcc7
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions lib/Log/Contextual.pm
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,17 @@ sub stash_name {
return $cv->GV->STASH->NAME;
}

my @dlog = ((map "Dlog_$_", @levels), (map "DlogS_$_", @levels));

my @log = ((map "log_$_", @levels), (map "logS_$_", @levels));
my @dlog = (
(map "Dlog_$_", @levels),
(map "DlogS_$_", @levels),
(map "Dslog_$_", @levels),
(map "DslogS_$_", @levels));

my @log = (
(map "log_$_", @levels),
(map "logS_$_", @levels),
(map "slog_$_", @levels),
(map "slogS_$_", @levels));

sub _maybe_export {
my ($spec, $target, $name, $new_code) = @_;
Expand Down

0 comments on commit e2fdcc7

Please sign in to comment.