From d0dc22161e5d6da10581855b9a61fa277f291801 Mon Sep 17 00:00:00 2001 From: Ryan Davis Date: Wed, 5 Jun 2019 19:46:59 -0700 Subject: Use $stdout instead of STDOUT for the default logdev. This makes it testable using minitest/rspec IO assertions/expectations. STDOUT/STDERR should only be used to restore $stdout/$stderr if something goes haywire. The globals should be used for everyday use. Also bolstered an IO test to prevent the output from going to the rspec result output. Signed-off-by: Ryan Davis --- lib/mixlib/log/logger.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/mixlib/log/logger.rb') diff --git a/lib/mixlib/log/logger.rb b/lib/mixlib/log/logger.rb index f92d4a2..f227f23 100644 --- a/lib/mixlib/log/logger.rb +++ b/lib/mixlib/log/logger.rb @@ -21,7 +21,7 @@ module Mixlib # # +logdev+:: # The log device. This is a filename (String) or IO object (typically - # +STDOUT+, +STDERR+, or an open file). + # +$stdout+, +$stderr+, or an open file). # +shift_age+:: # Number of old log files to keep, *or* frequency of rotation (+daily+, # +weekly+ or +monthly+). -- cgit v1.2.1