Class: Dry::Logger::Backends::IO

Inherits:
Stream
  • Object
show all
Defined in:
lib/dry/logger/backends/io.rb

Instance Attribute Summary

Attributes inherited from Stream

#level, #stream

Attributes included from Core

#log_if

Instance Method Summary collapse

Methods inherited from Stream

#initialize, #inspect

Methods included from Core

#log?

Constructor Details

This class inherits a constructor from Dry::Logger::Backends::Stream

Instance Method Details

#closeObject



9
10
11
# File 'lib/dry/logger/backends/io.rb', line 9

def close
  super unless stream.equal?($stdout)
end