The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

LWP::ConsoleLogger::Easy - Easy LWP tracing and debugging

VERSION

version 0.000010

SYNOPSIS

    use LWP::ConsoleLogger::Easy qw( debug_ua );
    use WWW::Mechanize;

    my $mech = WWW::Mechanize->new;
    my $logger = debug_ua( $mech );
    $mech->get(...);

    # now watch the console for debugging output

DESCRIPTION

This module gives you the easiest possible (and the most verbose) introduction to LWP::ConsoleLogger. It turns on all logging by default. I'd suggest going with the defaults to start with and then turning down the verbosity after that.

FUNCTIONS

debug_ua

This module exports one function: debug_ua(). It's essentially an easy wrapper around LWP::ConsoleLogger, allowing you to get up and running quickly with just a couple of lines of code. This method instantiates LWP logging and also returns an LWP::ConsoleLogger object, which you may then tweak to your heart's desire.

    my $ua_logger = debug_ua( $mech );
    $ua_logger->content_pre_filter( sub {...} );
    $ua_logger->logger( Log::Dispatch->new(...) );

    $mech->get(...);

AUTHOR

Olaf Alders <olaf@wundercounter.com>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2014 by MaxMind, Inc..

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)