Module: Wiselinks::Logger

Included in:
Wiselinks
Defined in:
lib/wiselinks/logger.rb

Instance Method Summary collapse

Instance Method Details

#log(message) ⇒ Object



7
8
9
# File 'lib/wiselinks/logger.rb', line 7

def log(message)
  self.logger.info("  [wiselinks] #{message}")
end

#loggerObject



3
4
5
# File 'lib/wiselinks/logger.rb', line 3

def logger
  @logger ||= Wiselinks.options[:logger] || ::Logger.new(STDOUT)
end