![]() |
![]()
| ![]() |
![]()
NAMELog::ger::Output::String - Set output to a string VERSIONversion 0.042 SYNOPSISBEGIN { our $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". DESCRIPTIONFor testing only. CONFIGURATIONstring => scalarrefRequired. formatter => coderefOptional. append_newline => bool (default: 1)AUTHORperlancar <perlancar@cpan.org> COPYRIGHT AND LICENSEThis software is copyright (c) 2023, 2022, 2020, 2019, 2018, 2017 by perlancar <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.
|