Log::Any::Adapter::Null — Discards all log messages
| Use Case | Command | Description |
|---|---|---|
| Set null adapter globally | Log::Any::Adapter->set('Null'); | Discard all log messages and return false for detection methods |
| Check if debugging is enabled | $log->is_debug() | Always returns false (null adapter) |
| Get a logger with null adapter | my $log = Log::Any->get_logger; | Logger that silently discards all messages |
version 1.710
Log::Any::Adapter->set('Null');
This Log::Any adapter discards all log messages and returns false for all detection methods (e.g. is_debug). This is the default adapter when Log::Any is loaded.
This software is copyright (c) 2017 by Jonathan Swartz, David Golden, and Doug Bell.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.32.1 | 2021-09-27 | Log::Any::Adapter::Null(3pm)
Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-27 06:57 @216.73.216.194
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format