Log::Dispatch::Null – Object that accepts messages and does nothing
| Use Case | Command | Description |
|---|---|---|
| Initialize a null logger | Log::Dispatch->new( outputs => [ [ 'Null', min_level => 'debug' ] ] ) |
🛠️ Create a dispatcher with a null output that silently discards all messages. |
| Send an emergency message | $null->emerg( "I've fallen and I can't get up" ); |
📤 Send a message at the emerg level; it is ignored. |
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.
Generated by phpman v4.9.29 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-22 01:35 @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