Tie::Handle::LogGer - Filehandle to log to Log::ger
This document describes version 0.001 of Tie::Handle::LogGer (from Perl distribution Tie-Handle-LogGer), released on 2017-08-08.
use Tie::Handle::LogGer; tie *FH, 'Tie::Handle::LogGer', level => 'debug', # optional, default is 'warn' category => 'Foo::Bar', # optional, default is current package ; print FH "this is a debug log message"; print FH "this is another debug log message, data=%s", $data;
This module ties a filehandle to Log::ger logger object. For sure a silly module, just a proof of concept.
Please visit the project's homepage at https://metacpan.org/release/Tie-Handle-LogGer.
Source repository is at https://github.com/perlancar/perl-Tie-Handle-LogGer.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Tie-Handle-LogGer
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.
Log::ger
perlancar <perlancar@cpan.org>
This software is copyright (c) 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.
To install Tie::Handle::LogGer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tie::Handle::LogGer
CPAN shell
perl -MCPAN -e shell install Tie::Handle::LogGer
For more information on module installation, please visit the detailed CPAN module installation guide.