Test::AutoBuild::Monitor::Log4perl.3pm

Langue: en

Autres versions - même langue

Version: 2007-12-08 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

NAME

Test::AutoBuild::Monitor::Log4perl - Monitor progress through a log4perl

SYNOPSIS

   use Test::AutoBuild::Monitor::Log4perl
 
   my $monitor = Test::AutoBuild::Log4perl->new()
 
   # Emit some events
   $monitor->notify("begin-stage", "build", time);
   $monitor->notify("end-stage", "build", time, $status);
 
 

DESCRIPTION

This module sends monitoring events to Log4perl. The events are logged under the category Test::AutoBuild::Monitor::Log4perl with a priority of INFO.

CONFIGURATION

This module merely takes the standard configuration parameters for "Test::AutoBuild::Monitor"

EXAMPLE

   log = {
     label = Log4perl monitor
     module = Test::AutoBuild::Monitor::Log4perl
   }
 
 

METHODS

$monitor->process($event_name, @args);
This method sends the event name and arguments to Log4Perl category matching this module's package name. The arguments are simply sent as a comma separated list.

AUTHORS

Daniel Berrange <dan@berrange.com> Copyright (C) 2005 Daniel Berrange <dan@berrange.com>

SEE ALSO

perl(1), Test::AutoBuild::Monitor