---
name: "Log::ger::Output::String"
section: "3pm"
platform: "linux"
package: "liblog-ger-perl"
version: "0.042-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Log::ger::Output::String"
---

# Log::ger::Output::String(3pm)

Set output to a string

## NAME

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

## VERSION

version 0.042

## SYNOPSIS

```
 BEGIN { 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".

## DESCRIPTION

For testing only.

## CONFIGURATION

### string =\> scalarref

Required.

### formatter =\> coderef

Optional.

### append\_newline =\> bool (default: 1)

## AUTHOR

perlancar \<perlancar@cpan.org\>

## COPYRIGHT AND LICENSE

This 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.
