Module: Core::Logging

Included in:
Io::Base, Registry
Defined in:
app/api/core/logging.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.logging_helper(name) ⇒ Object


2
3
4
5
6
7
8
# File 'app/api/core/logging.rb', line 2

def self.logging_helper(name)
  module_eval <<-END_OF_HELPER
    def #{name}(message)
      Rails.logger.#{name}("API(\#{(self.is_a?(Class) ? self : self.class).name}): \#{message}")
    end
  END_OF_HELPER
end

Instance Method Details

#low_level(*args) ⇒ Object


14
15
16
# File 'app/api/core/logging.rb', line 14

def low_level(*args)
  # debug(*args)
end