GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  LOG::DISPATCH::SCREEN::COLOR (3)

.ds Aq ’

NAME

Log::Dispatch::Screen::Color - attached color for Log::Dispatch::Screen

CONTENTS

SYNOPSIS



  use Log::Dispatch::Screen::Color;

  my $log = Log::Dispatch::Screen::Color->new(
      name      => test,
      min_level => debug,
      stderr    => 1,
  );

  # not use default color map
  my $log = Log::Dispatch::Screen::Color->new(
      name      => test,
      min_level => debug,
      stderr    => 1,
      color     => {
          info  => {
              text => red,
          },
          error   => {
              background => red,
          },
          alert   => {
              text       => red,
              background => white,
          },
          warning => {
              text       => red,
              background => white,
              bold       => 1,
          },
      },
  );

  $log->log( level => info, message => "I like wasabi!\n" );



DESCRIPTION

Log::Dispatch::Screen::Color is attaching a color safely for Screen. because Log::Dispatch::Colorful has rewrite Log::Dispatch method problem.

Win32 is supported.

Note that a newline will not be added automatically at the end of a message by default. To do that, pass newline => 1.

OVERRIDES

Setting $Log::Dispatch::Screen::Color::DEFAULT_COLOR overrides. default color is changed.



  local $Log::Dispatch::Screen::Color::DEFAULT_COLOR->{info} = {
    text => red,
  };



AUTHOR

Kazuhiro Osawa <yappo <at> shibuya <doet> pl>

SEE ALSO

Log::Dispatch, Log::Dispatch::Screen

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 LOG::DISPATCH::SCREEN::COLOR (3) 2010-09-08

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.