module LaunchpadMk2::Logging
This module provides logging facilities. Just include it to be able to log stuff.
Public Instance Methods
logger()
click to toggle source
Returns the logger to be used by the current instance.
Returns:
the logger set externally or a logger that swallows everything
# File lib/launchpad_mk2/logging.rb, line 14 def logger @logger ||= Logger.new(nil) end
logger=(logger)
click to toggle source
Sets the logger to be used by the current instance.
logger
-
the [Logger] instance
# File lib/launchpad_mk2/logging.rb, line 21 def logger=(logger) @logger = logger end