NAME

Log::Dispatch::TAP - Log to TAP output

VERSION

version v0.2.1

SYNOPSIS

use Log::Dispatch;

my $logger = Log::Dispatch->new(
  outputs => [
    [
       'TAP',
       method    => 'note',
       min_level => 'debug',
  ]
);

DESCRIPTION

This module provides a Log::Dispatch output sink for logging to Test::Simple diagnostics.

It is similar to Log::Dispatch::TestDiag.

CONSTRUCTOR

The constructor takes the following parameter in addition to the standard parameters for Log::Dispatch::Output.

method

This is the logging method, which is either note or diag (corresponding to those functions in Test::More).

SUPPORT FOR OLDER PERL VERSIONS

Since v0.2.0, the this module requires Perl v5.14 or later.

Future releases may only support Perl versions released in the last ten years.

If you need this module on Perl v5.10, please use one of the v0.1.x versions of this module. Significant bug or security fixes may be backported to those versions.

SEE ALSO

Log::Log4perl::Appender::TAP

Log::Dispatch::TestDiag

SOURCE

The development version is on github at https://github.com/robrwo/Log-Dispatch-TAP and may be cloned from git://github.com/robrwo/Log-Dispatch-TAP.git

BUGS

Please report any bugs or feature requests on the bugtracker website https://github.com/robrwo/Log-Dispatch-TAP/issues

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR

Robert Rothenberg <rrwo@cpan.org>

Some of the code was adapted from Log::Log4perl::Appender::TAP and Log::Dispatch::TestDiag.

COPYRIGHT AND LICENSE

This software is Copyright (c) 2020-2023 by Robert Rothenberg.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)