Method: Betterlog::Log::EventFormatter#initialize

Defined in:
lib/betterlog/log/event_formatter.rb

#initialize(event) ⇒ Betterlog::Log::EventFormatter

Initializes a new EventFormatter instance with the given log event.

This constructor sets up the formatter with a specific log event to be formatted, preparing it for subsequent formatting operations such as JSON generation or pretty printing with color support.

this instance

Parameters:



28
29
30
# File 'lib/betterlog/log/event_formatter.rb', line 28

def initialize(event)
  @event = event
end