Guide Home
POD Home

Sloop::Logger::SimpleColor

DESCRIPTION

A version of Sloop::Logger which uses ANSI escapes to color the output. This is probably not desirable if you are logging to a file since text viewers generally don't render it and the escapes will be seen as clutter. Output to a normal linux terminal though, it's fine.

The color isn't applied to the timestamp.

REQUIRES

This refers only to things not part of Sloop or the perl core.

Term::ANSIColor

SYNOPSIS

 my $logger = Sloop::Logger::SimpleColor->new (
     $color,
     logs => (optional) see Sloop::Logger
 );

$color is passed straight through to Term::ANSIColor, so, e.g. 'yellow' or 'rgb550' are both valid.