require 'logger' module Marvin class Logger cattr_accessor :logger class << self def setup self.logger ||= ::Logger.new(STDOUT) end def method_missing(name, *args, &blk) self.setup # Ensure the logger is setup self.logger.send(name, *args, &blk) end end end end