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