Sha256: 73faf398464d1cdea1dc5be03fb7243d10f46d173204de866e79715e50513203
Contents?: true
Size: 523 Bytes
Versions: 3
Compression:
Stored size: 523 Bytes
Contents
# frozen_string_literal: true module Calendly # Calendly logger utility module. module Loggable def error_log(msg) log msg, :error end def warn_log(msg) log msg, :warn end def info_log(msg) log msg, :info end def debug_log(msg) log msg, :debug end private def log(msg, level = :info) logger = Calendly.configuration.logger return unless logger return unless logger.respond_to? level logger.send level, msg end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
calendly-0.2.0 | lib/calendly/loggable.rb |
calendly-0.1.3 | lib/calendly/loggable.rb |
calendly-0.1.2 | lib/calendly/loggable.rb |