class EventifyPro::DefaultLogger

Default Logger for EventifyPro::Client. Used if logger is not provided during client initialization

Public Class Methods

new() click to toggle source
# File lib/eventify_pro/logger.rb, line 9
def initialize
  @logger = Logger.new(STDOUT)
  @logger.level = Logger::INFO
  @logger.datetime_format = '%Y-%m-%d %H:%M:%S '
rescue
  false
end

Public Instance Methods

info(message) click to toggle source
# File lib/eventify_pro/logger.rb, line 17
def info(message)
  @logger.info(message)
rescue
  false
end