| 1 | ## no critic: TestingAndDebugging::RequireUseStrict | ||
| 2 | package Log::ger::Output::Null; | ||
| 3 | |||
| 4 | 1 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |
| 5 | 1 | our $DATE = '2023-12-29'; # DATE | |
| 6 | 1 | our $DIST = 'Log-ger'; # DIST | |
| 7 | 1 | our $VERSION = '0.042'; # VERSION | |
| 8 | |||
| 9 | 0 | ▶ | sub meta { +{ |
|
Subroutine
meta: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 10 | 0 | v => 2, | |
| 11 | } } | ||
| 12 | |||
| 13 | 0 | ▶ | sub get_hooks { |
|
Subroutine
get_hooks: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 14 | return { | ||
| 15 | create_outputter => [ | ||
| 16 | __PACKAGE__, # key | ||
| 17 | 50, # priority | ||
| 18 | 0 | ▶ | sub { # hook |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 19 | 0 | my %hook_args = @_; # see Log::ger::Manual::Internals/"Arguments passed to hook" | |
| 20 | |||
| 21 | 0 | $Log::ger::_outputter_is_null = 1; | |
| 22 | 0 | ▶ | my $outputter = sub {0}; |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 23 | 0 | [$outputter]; | |
| 24 | 0 | }], | |
| 25 | }; | ||
| 26 | } | ||
| 27 | |||
| 28 | 1 | 1; | |
| 29 | # ABSTRACT: Null output | ||
| 30 | |||
| 31 | __END__ | ||