1Log::ger::Output::StrinUgs(e3r)Contributed Perl DocumentLaotgi:o:nger::Output::String(3)
2
3
4

NAME

6       Log::ger::Output::String - Set output to a string
7

VERSION

9       version 0.038
10

SYNOPSIS

12        use var '$str';
13        use Log::ger::Output 'String' => (
14            string => \$str,
15            # append_newline => 0, # default is true, to mimic Log::ger::Output::Screen
16        );
17        use Log::ger;
18
19        log_warn "warn ...";
20        log_error "debug ...";
21
22       $str will contain "warn ...\n".
23

DESCRIPTION

25       For testing only.
26

CONFIGURATION

28   string => scalarref
29       Required.
30
31   formatter => coderef
32       Optional.
33
34   append_newline => bool (default: 1)

AUTHOR

36       perlancar <perlancar@cpan.org>
37
39       This software is copyright (c) 2021, 2020, 2019, 2018, 2017 by
40       perlancar@cpan.org.
41
42       This is free software; you can redistribute it and/or modify it under
43       the same terms as the Perl 5 programming language system itself.
44
45
46
47perl v5.32.1                      2021-01-31       Log::ger::Output::String(3)
Impressum