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


Test-AutoBuild documentation  | view source Contained in the Test-AutoBuild distribution.

Index


NAME

Top

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

SYNOPSIS

Top

  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

Top

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

CONFIGURATION

Top

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

EXAMPLE

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

METHODS

Top

$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

Top

Daniel Berrange <dan@berrange.com>

COPYRIGHT

Top

SEE ALSO

Top

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


Test-AutoBuild documentation  | view source Contained in the Test-AutoBuild distribution.