Log::ger::Output::Screen - Output log to screen
version 0.007
use Log::ger::Output Screen => ( # stderr => 1, # set to 0 to print to stdout instead of stderr # use_color => 0, # set to 1/0 to force usage of color, default is from COLOR or (-t STDOUT) # formatter => sub { ... }, ); use Log::ger; log_warn "blah...";
Whether to print to STDERR (the default) or st=head2 use_color => bool
The default is to look at the COLOR environment variable, or 1 when in interactive mode and 0 when not in interactive mode.
When defined, will pass the formatted message (but being applied with colors) to this custom formatter.
Modelled after Log::Any::Adapter::Screen.
perlancar <perlancar@cpan.org>
This software is copyright (c) 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.
To install Log::ger::Output::Screen, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::ger::Output::Screen
CPAN shell
perl -MCPAN -e shell install Log::ger::Output::Screen
For more information on module installation, please visit the detailed CPAN module installation guide.