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::COLORFUL (3)

.ds Aq ’

NAME

Log::Dispatch::Colorful - Object for logging to screen.

CONTENTS

SYNOPSIS



  use Log::Dispatch::Colorful;

  my $screen = Log::Dispatch::Colorful->new(
      name      => screen,
      min_level => debug,
      stderr    => 1,
      format    => [%d] [%p] %m at %F line %L%n,
      color     => {
          info  => { text => green, },
          debug => {
              text       => red,
              background => white,
          },
          error => {
              text       => yellow,
              background => red,
          },
      }
  );

  $screen->log( level => error, message => "look at that rainbow!\n" );

  # dump reference variants!
  my $data = {
      foo => bar,
  };
  $screen->log( level => debug, message => $data );



DESCRIPTION

Log::Dispatch::Colorful is provides an object for logging to the screen.

ATTENTION

this module is rewrite Log::Dispatch method for Dumper. if you don’t need Dumper, you think about using Log::Dispatch::Screen::Color.

METHODS

    new

This method takes a hash of parameters.

    log

Sends a message if the level is greater than or equal to the object’s minimum level. This method applies any message formatting callbacks that the object may have. (in Log::Dispatch::Output).

    log_message

Sends a message to the appropriate output. Generally this shouldn’t be called directly but should be called through the log() method (in Log::Dispatch::Output).

AUTHOR

Daisuke Komatsu <vkg.taro@gmail.com>

SEE ALSO

Log::Dispatch, Log::Dispatch::Screen, Catalyst::Plugin::Log::Colorful

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::COLORFUL (3) 2009-09-20

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