Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Log::ger::Output::StriUser)Contributed Perl DocumenLog::ger::Output::String(3)

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

VERSION
       version 0.037

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

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

perl v5.32.1			  2020-03-11	   Log::ger::Output::String(3)

NAME | VERSION | SYNOPSIS | DESCRIPTION | CONFIGURATION | AUTHOR | COPYRIGHT AND LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Log::ger::Output::String&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help