Module: Waylon::BaseComponent::InstanceLoggingMethods

Defined in:
lib/waylon/base_component.rb

Overview

Base instance logging methods

Instance Method Summary collapse

Instance Method Details

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

Instance-level access to logging via the Class log method

Parameters:

  • message (String)

    The message to log

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

    The log level for this message



101
102
103
# File 'lib/waylon/base_component.rb', line 101

def log(message, level = :info)
  self.class.log(message, level)
end