Log::Dispatch::Null(3pm) User Contributed Perl Documentation Log::Dispatch::Null(3pm)
Log::Dispatch::Null - Object that accepts messages and does nothing
| Use Case | Command | Description |
|---|---|---|
| Create a null logger | use Log::Dispatch; my $null = Log::Dispatch->new( outputs => [ [ 'Null', min_level => 'debug' ] ] ); | Instantiate a Log::Dispatch object with a Null output that accepts messages and does nothing. |
| Send a message to the null logger | $null->emerg( "I've fallen and I can't get up" ); | Send an emergency-level message to the null logger; it will be silently discarded. |
version 2.70
use Log::Dispatch;
my $null
= Log::Dispatch->new( outputs => [ [ 'Null', min_level => 'debug' ] ] );
$null->emerg( "I've fallen and I can't get up" );
This class provides a null logging object. Messages can be sent to the object but it does nothing with them.
Bugs may be submitted at https://github.com/houseabsolute/Log-Dispatch/issues.
I am also usually active on IRC as 'autarch' on irc://irc.perl.org.
The source code repository for Log-Dispatch can be found at https://github.com/houseabsolute/Log-Dispatch.
Dave Rolsky <autarch AT urth.org>
This software is Copyright (c) 2020 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
The full text of the license can be found in the LICENSE file included with this distribution.
perl v5.30.3 2020-07-23 Log::Dispatch::Null(3pm)
Generated by phpman v4.9.29 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-22 00:31 @2600:1f28:365:80b0:d8a5:c3c6:bf94:28c0
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format