Log::Dispatch::Screen::Gentoo - Gentoo-colored screen logging output
version 0.003
use Log::Dispatch; my $log = Log::Dispatch->new( 'outputs' => [ [ 'Screen::Gentoo', 'min_level' => 'debug', 'stderr' => 1, 'newline' => 1, ], ], ); $log->info('Information'); $log->warning('Uh oh!'); $log->critical('No oh!');
This implements a colorful output that uses Term::GentooFunctions to print out the output.
It also works with indentation when using eindent and eoutdent from Term::GentooFunctions.
eindent
eoutdent
If you have Unicode::UTF8 available, it will use that to support UTF-8 character encodings. (This is much faster than Encode.)
One limitation this has is that there are only three colors, which means that you cannot see a difference between levels debug, notice, and info which all have a green color, or between error, critical, alert, and emergency which all have a red color.
debug
notice
info
error
critical
alert
emergency
At least for now.
Log::Dispatch::Screen::Color
Colors entire lines, not just the beginning. Try it out.
Unicode::UTF8
Sawyer X <xsawyerx@cpan.org>
This software is Copyright (c) 2020 by Sawyer X.
This is free software, licensed under:
The MIT (X11) License
To install Log::Dispatch::Screen::Gentoo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::Dispatch::Screen::Gentoo
CPAN shell
perl -MCPAN -e shell install Log::Dispatch::Screen::Gentoo
For more information on module installation, please visit the detailed CPAN module installation guide.