start at 0.3.1 instead of 0.3.0
[scpubgit/Object-Remote.git] / t / logsetup.pl
CommitLineData
f129bfaf 1#require this file in the test to initialize the logging framework
4e446335 2#so the tests can run and all log items can be executed during testing
f129bfaf 3
4e446335 4package Object::Remote::Logging::TestOutput;
f129bfaf 5
4e446335 6use base qw ( Object::Remote::Logging::Logger );
f129bfaf 7
4e446335 8#don't need to output anything
9sub _output { }
f129bfaf 10
11package main;
12
f4a85080 13use Object::Remote::Logging qw( router );
f129bfaf 14#make sure to enable execution of every logging code block
15#by setting the log level as high as it can go
f4a85080 16router->connect(Object::Remote::Logging::TestOutput->new(
4e446335 17 min_level => 'trace', max_level => 'error',
18 level_names => Object::Remote::Logging->arg_levels(),
19));
20
f129bfaf 211;
22