Module: Waylon::BaseComponent::ClassLoggingMethods

Defined in:
lib/waylon/base_component.rb

Overview

Base class logging methods

Instance Method Summary collapse

Instance Method Details

#log(message, level = :info) ⇒ Object

Simple pass-through for logging through the Waylon Logger

Parameters:

  • message (String)

    The message to log

  • level (String, Symbol) (defaults to: :info)

    The log level for this message



19
20
21
# File 'lib/waylon/base_component.rb', line 19

def log(message, level = :info)
  ::Waylon::Logger.log(message, level)
end