Log::Dispatch::Config::TestLog - Set up Log::Dispatch::Config for a test run
use Log::Dispatch::Config::TestLog;
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 with log.
file
log
If the environment variable TEST_LOG_DIR is set or the log_dir parameter is given to import, then log files will be created in that directory instead.
TEST_LOG_DIR
log_dir
import
All TAP output is logged with the info level by default. If the tap_level parameter is given to import then that level will be used instead. undef can be passed to disable TAP output.
info
tap_level
undef
Note that this only works for Test::Builder based tests.
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.
This module is maintained using Darcs. You can get the latest version from http://nothingmuch.woobling.org/code, and use darcs send to commit changes.
darcs send
Yuval Kogman <nothingmuch@woobling.org>
Copyright (c) 2008 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.
To install Log::Dispatch::Config::TestLog, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::Dispatch::Config::TestLog
CPAN shell
perl -MCPAN -e shell install Log::Dispatch::Config::TestLog
For more information on module installation, please visit the detailed CPAN module installation guide.