lib/logging_library.rb in logging_library-1.1.2 vs lib/logging_library.rb in logging_library-1.2.0
- old
+ new
@@ -6,9 +6,17 @@
module LoggingLibrary
Loggable = Mixins::Loggable
LOG_LEVELS = Mixlib::Log::LEVELS.keys.freeze
+
+ class << self
+ def output_device
+ @output_device ||= $stderr
+ end
+
+ attr_writer :output_device
+ end
end
# Avoid buffering output when running under e.g. Foreman.
$stdout.sync = true
$stderr.sync = true