Log::ger::Output::String - Set output to a string
version 0.038
use var '$str'; use Log::ger::Output 'String' => ( string => \$str, # append_newline => 0, # default is true, to mimic Log::ger::Output::Screen ); use Log::ger; log_warn "warn ..."; log_error "debug ...";
$str will contain "warn ...\n".
$str
For testing only.
Required.
Optional.
perlancar <perlancar@cpan.org>
This software is copyright (c) 2021, 2020, 2019, 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.
To install Log::ger, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::ger
CPAN shell
perl -MCPAN -e shell install Log::ger
For more information on module installation, please visit the detailed CPAN module installation guide.