Take me over?
NAME
Log::Dispatch::Config::TestLog - Set up Log::Dispatch::Config for a test run
SYNOPSIS
use Log::Dispatch::Config::TestLog;
DESCRIPTION
This module will load Log::Dispatch::Config and set things up so that:
By default there is a single dispatcher,
file, a Log::Dispatch::File instance, whose output is the name of the test appended withlog.If the environment variable
TEST_LOG_DIRis set or thelog_dirparameter is given toimport, then log files will be created in that directory instead.All TAP output is logged with the
infolevel by default. If thetap_levelparameter is given toimportthen that level will be used instead.undefcan be passed to disable TAP output.Note that this only works for Test::Builder based tests.
TODO
- Better test logging
-
Make the test logging use different levels for certain things (fails increase the level, for instance), and consider scrubbing multi line output since we provide a one line format by default.
VERSION CONTROL
http://github.com/nothingmuch/log-dispatch-config-testlog
AUTHOR
Yuval Kogman <nothingmuch@woobling.org>
COPYRIGHT
Copyright (c) 2008, 2010 Yuval Kogman. All rights reserved
This program is free software; you can redistribute
it and/or modify it under the same terms as Perl itself.