NAME

Log::Log4perl::Appender::ScreenColoredLevels::UsingMyColors - Colorize messages according to level amd my colors

SYNOPSIS

use Log::Log4perl::Appender::ScreenColoredLevels::UsingMyColors;

SYNOPSIS

    use Log::Log4perl qw(:easy);

    Log::Log4perl->init(\ <<'EOT');
		log4perl.category = DEBUG, Screen
		log4perl.appender.Screen = Log::Log4perl::Appender::ScreenColoredLevels::UsingMyColors
		log4perl.appender.Screen.layout = Log::Log4perl::Layout::PatternLayout
		log4perl.appender.Screen.layout.ConversionPattern = [%p] %d %F{1} %L> %m %n
		log4perl.appender.Screen.color.trace = cyan
		log4perl.appender.Screen.color.debug = default
		log4perl.appender.Screen.color.info  = green
		log4perl.appender.Screen.color.warn  = default
		log4perl.appender.Screen.color.error = default
		log4perl.appender.Screen.color.fatal = red
    EOT

DESCRIPTION

new
log

DESCRIPTION

This appender acts like Log::Log4perl::Appender::ScreenColoredLevels, but you get to choose the colors. You can choose any of the constants from Term::ANSIColor.

TO DO

SEE ALSO

Log::Log4perl::Appender::ScreenColoredLevels, Term::ANSIColor

SOURCE AVAILABILITY

This source is on GitHub:

https://github.com/briandfoy/log-log4perl-appender-screencoloredlevels-usingmycolors

AUTHOR

brian d foy, <briandfoy@pobox.com>

COPYRIGHT AND LICENSE

Copyright © 2008-2024, brian d foy <briandfoy@pobox.com>. All rights reserved.

You may redistribute this under the terms of the Artistic License 2.0.