-
-
11 Mar 2020 12:20:11 UTC
- Distribution: Log-ger-Output-Callback
- Module version: 0.009
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (0)
- Testers (135 / 0 / 2)
- Kwalitee
Bus factor: 1- 72.73% Coverage
- License: perl_5
- Perl: v5.10.1
- Activity
24 month- Tools
- Download (14.58KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- strict
- warnings
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- NAME
- VERSION
- SYNOPSIS
- DESCRIPTION
- CONFIGURATION
- logging_cb => code
- detection_cb => code
- HOMEPAGE
- SOURCE
- BUGS
- SEE ALSO
- AUTHOR
- COPYRIGHT AND LICENSE
NAME
Log::ger::Output::Callback - Send logs to a subroutine
VERSION
This document describes version 0.009 of Log::ger::Output::Callback (from Perl distribution Log-ger-Output-Callback), released on 2020-03-11.
SYNOPSIS
use Log::ger::Output Callback => ( logging_cb => sub { my ($per_target_conf, $lvlnum, $msg, $per_msg_conf) = @_; ... }, # optional detection_cb => sub { my ($lvlnum) = @_; ... }, # optional );
DESCRIPTION
This output plugin provides an easy way to do custom logging in Log::ger. If you want to be more proper, you can also create your own output plugin, e.g. Log::ger::Output::Screen or Log::ger::Output::File. To do so, follow the tutorial in Log::ger::Manual::Tutorial::49_WritingAnOutputPlugin or alternatively just peek at the source code of this module.
CONFIGURATION
logging_cb => code
detection_cb => code
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/Log-ger-Output-Callback.
SOURCE
Source repository is at https://github.com/perlancar/perl-Log-ger-Output-Callback.
BUGS
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Log-ger-Output-Callback
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
SEE ALSO
Modelled after Log::Any::Adapter::Callback
AUTHOR
perlancar <perlancar@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2020, 2018, 2017 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Log::ger::Output::Callback, copy and paste the appropriate command in to your terminal.
cpanm Log::ger::Output::Callback
perl -MCPAN -e shell install Log::ger::Output::Callback
For more information on module installation, please visit the detailed CPAN module installation guide.