Package Info

perl-Log-Any-Adapter-Callback


(DEPRECATED) Send Log::Any logs to a subroutine


Development/Libraries/Perl

DEPRECATION NOTICE: Log::Any distribution since 1.708 comes with Log::Any::Adapter::Capture which does the same thing. I'm deprecating this adapter now.

This adapter lets you specify callback subroutine to be called by Log::Any's logging methods (like $log->debug(), $log->error(), etc) and detection methods (like $log->is_warning(), $log->is_fatal(), etc.).

This adapter is used for customized logging, and is mostly a convenient construct to save a few lines of code. You could achieve the same effect by creating a full Log::Any adapter class.

Your logging callback subroutine will be called with these arguments:

($method, $self, $format, @params)

where $method is the name of method (like "debug") and ($self, $format, @params) are given by Log::Any.


License: Artistic-1.0 OR GPL-1.0-or-later
URL: https://metacpan.org/release/Log-Any-Adapter-Callback

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.101-bp156.2.1 info GA Release 2023-07-22 15 SP6
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Log-Any-Adapter-Callback
0.101-bp155.1.4 info GA Release 2023-05-17 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Log-Any-Adapter-Callback