Steven Haryanto > Log-Any-Adapter-ScreenColoredLevel > Log::Any::Adapter::ScreenColoredLevel

Download:
Log-Any-Adapter-ScreenColoredLevel-0.05.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.05   Source  

NAME ^

Log::Any::Adapter::ScreenColoredLevel - Send logs to screen with colorized messages according to level

VERSION ^

version 0.05

SYNOPSIS ^

 use Log::Any::Adapter;
 Log::Any::Adapter->set('ScreenColoredLevel',
     # min_level => 'debug', # default is 'warning'
     # colors    => { trace => 'bold yellow on_gray', ... }, # customize colors
     # use_color => 1, # force color even when not interactive
     # stderr    => 0, # print to STDOUT instead of STDERR
     # formatter => sub { "LOG: $_[1]" }, # default none
 );

DESCRIPTION ^

This Log::Any adapter prints log messages to screen (STDERR/STDOUT) colored according to level. It is just like Log::Log4perl::Appender::ScreenColoredLevel, even down to the default colors, except that you don't have to use Log::Log4perl. Of course, unlike Log4perl, it only logs to screen and has minimal features.

Parameters:

SEE ALSO ^

Log::Any

Log::Log4perl::Appender::ScreenColoredLevel

Term::ANSIColor

HOMEPAGE ^

Please visit the project's homepage at https://metacpan.org/release/Log-Any-Adapter-ScreenColoredLevel.

SOURCE ^

Source repository is at https://github.com/sharyanto/perl-Log-Any-Adapter-ScreenColoredLevel.

BUGS ^

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Log-Any-Adapter-ScreenColoredLevel

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR ^

Steven Haryanto <stevenharyanto@gmail.com>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2014 by Steven Haryanto.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: