Class: Dry::Logger::Backends::File
- Defined in:
- lib/dry/logger/backends/file.rb
Instance Attribute Summary
Attributes inherited from Stream
Attributes included from Core
Instance Method Summary collapse
-
#initialize(stream:, **opts) ⇒ File
constructor
A new instance of File.
Methods inherited from Stream
Methods included from Core
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 |