diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2014-07-03 12:01:25 +0100 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2014-07-03 12:01:25 +0100 |
commit | 02cd939814dc8aebc80b5a23a3ba6b68f4118864 (patch) | |
tree | 3e74d4e098187fc8e8536c9cef98efa15347c3b0 /test/th_mauve.rb | |
parent | f6ddf58350e015ee49d35d3ac4a74cce53e62102 (diff) | |
parent | 9e8ee3bec749abf11a71003efd201e1e3fb0843f (diff) |
Merge
Diffstat (limited to 'test/th_mauve.rb')
-rw-r--r-- | test/th_mauve.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/th_mauve.rb b/test/th_mauve.rb index 4ec8dc5..49e714b 100644 --- a/test/th_mauve.rb +++ b/test/th_mauve.rb @@ -69,7 +69,14 @@ module Mauve @logger = Log4r::Logger.new 'Mauve' @outputter = Mauve::TestOutputter.new("test") @outputter.formatter = Log4r::PatternFormatter.new( :pattern => "%d %l %m" ) - @outputter.level = ($debug ? Log4r::DEBUG : Log4r::WARN) + @outputter.level = case ENV['LOGLEVEL'] + when "DEBUG" + Log4r::DEBUG + when "INFO" + Log4r::INFO + else + Log4r::WARN + end @logger.outputters << @outputter return @logger end |