Class: FlatKit::Logger
- Inherits:
-
Object
- Object
- FlatKit::Logger
- Defined in:
- lib/flat_kit/logger.rb
Class Method Summary collapse
Class Method Details
.for_io(io) ⇒ Object
18 19 20 |
# File 'lib/flat_kit/logger.rb', line 18 def self.for_io(io) ::Logger.new(io, formatter: LogFormatter.new) end |
.for_path(path) ⇒ Object
22 23 24 25 |
# File 'lib/flat_kit/logger.rb', line 22 def self.for_path(path) io = File.open(path.to_s, "a") for_io(io) end |