Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Log::Simple::Color 0.0.3

    Download button

    No screenshots available
    Downloads: 145  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Keedi Kim | More programs
    Perl Artistic License / FREE
    February 24th, 2011, 02:33 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Log::Simple::Color description

    Log messages with different color for console

    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

      


    TAGS:

    log messages | Perl module | logging module | logging | message | color

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM