Sha256: ff3b3b325bd76ce846bcf69184ef24fafde3ef261ab56c07ebe3d0cd6f048902

Contents?: true

Size: 403 Bytes

Versions: 5

Compression:

Stored size: 403 Bytes

Contents

module SurfaceMaster
  # This module provides logging facilities. Just include it to be able to log
  # stuff.
  module Logging
    # Returns the logger to be used by the current instance.
    #
    # Creates one if none was set.
    def logger
      @logger ||= Logger.new(nil)
    end

    # Sets the logger to be used by the current instance.
    def logger=(logger); @logger = logger; end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
surface_master-0.5.0 lib/surface_master/logging.rb
surface_master-0.4.1 lib/surface_master/logging.rb
surface_master-0.4.0 lib/surface_master/logging.rb
surface_master-0.2.1 lib/surface_master/logging.rb
surface_master-0.2.0 lib/surface_master/logging.rb