diff options
author | Ryan Davis <ryand-ruby@zenspider.com> | 2019-06-05 19:46:59 -0700 |
---|---|---|
committer | Ryan Davis <ryand-ruby@zenspider.com> | 2019-06-06 13:36:29 -0700 |
commit | d0dc22161e5d6da10581855b9a61fa277f291801 (patch) | |
tree | 8e33eb4253590f4ea632cdd12f332cd5ed0a8411 /lib/mixlib/log/logger.rb | |
parent | 9b2d51adfff3d6dda5e8fc0ca1d5c0eb40e7a393 (diff) | |
download | mixlib-log-d0dc22161e5d6da10581855b9a61fa277f291801.tar.gz |
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 <zenspider@chef.io>
Diffstat (limited to 'lib/mixlib/log/logger.rb')
-rw-r--r-- | lib/mixlib/log/logger.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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+). |