Class: Dry::Logger::Backends::File

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

Instance Attribute Summary

Attributes inherited from Stream

#level, #stream

Attributes included from Core

#log_if

Instance Method Summary collapse

Methods inherited from Stream

#inspect

Methods included from Core

#log?

Constructor Details

#initialize(stream:, **opts) ⇒ File

Returns a new instance of File.



11
12
13
14
# File 'lib/dry/logger/backends/file.rb', line 11

def initialize(stream:, **opts)
  Pathname(stream).dirname.mkpath
  super
end