Log::Simple::Color is a simple logging module for coloring text. You can set foreground color or background color for your text. This module supports ANSI terminals and Win32 systems.
SYNOPSIS
use strict;
use warnings;
use Log::Simple::Color;
my $log = Log::Simple::Color->new;
print "current log level: ", $log->level, "\n";
$log->level('debug');
print "current log level: ", $log->level, "\n";
$log->debug("This is a debug message");
$log->info("This is an info message");
$log->warning("This is a warning message");
$log->error("This is an error message");
$log->color(
mode => 'debug',
fg => 'yellow',
bg => 'blue',
bold => 1,
dark => 1,
);
$log->debug("you can set different color");
Product's homepage
Requirements:
· Perl