class Pakyow::Logger::Formatter
Attributes
output[R]
Public Class Methods
new(output)
click to toggle source
# File lib/pakyow/logger/formatter.rb, line 8 def initialize(output) @output = output end
Public Instance Methods
call(event, **options) { || ... }
click to toggle source
# File lib/pakyow/logger/formatter.rb, line 12 def call(event, **options) event = yield if block_given? format(event, **options) end
verbose!(value)
click to toggle source
# File lib/pakyow/logger/formatter.rb, line 17 def verbose!(value) @verbose = value end