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() self.logger.info(" [wiselinks] #{}") end |
#logger ⇒ Object
3 4 5 |
# File 'lib/wiselinks/logger.rb', line 3 def logger @logger ||= Wiselinks.[:logger] || ::Logger.new(STDOUT) end |