module Turnstile::Logger::Helper

Public Class Methods

included(base) click to toggle source
# File lib/turnstile/logger/helper.rb, line 4
def self.included(base)
  base.extend(Helper)
end

Public Instance Methods

around_logging(*args, &block)
Alias for: info_elapsed
debug(*args, &block) click to toggle source
# File lib/turnstile/logger/helper.rb, line 8
def debug(*args, &block)
  Turnstile::Logger.log(:debug, *args, &block)
end
error(*args, &block) click to toggle source
# File lib/turnstile/logger/helper.rb, line 20
def error(*args, &block)
  Turnstile::Logger.log(:error, *args, &block)
end
error_elapsed(*args, &block) click to toggle source
# File lib/turnstile/logger/helper.rb, line 32
def error_elapsed(*args, &block)
  with_duration(:error, *args, &block)
end
info(*args, &block) click to toggle source
# File lib/turnstile/logger/helper.rb, line 12
def info(*args, &block)
  Turnstile::Logger.log(:info, *args, &block)
end
info_elapsed(*args, &block) click to toggle source
# File lib/turnstile/logger/helper.rb, line 28
def info_elapsed(*args, &block)
  with_duration(:info, *args, &block)
end
log_around(*args, &block)
Alias for: info_elapsed
warn(*args, &block) click to toggle source
# File lib/turnstile/logger/helper.rb, line 16
def warn(*args, &block)
  Turnstile::Logger.log(:warn, *args, &block)
end
with_duration(level = :info, *args, &block) click to toggle source
# File lib/turnstile/logger/helper.rb, line 24
def with_duration(level = :info, *args, &block)
  Turnstile::Logger.logging(level, *args, &block)
end
with_logging(*args, &block)
Alias for: info_elapsed