logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

       perlancar <perlancar@cpan.org>

Configuration

string=>scalarref
       Required.

   formatter=>coderef
       Optional.

   append_newline=>bool(default:1)

Description

       For testing only.

Name

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

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

Version

       version 0.042

See Also