Sha256: 64904b738464e0af76950805b6b335f0d0cd30104efad40a70aa97d403a8ce29

Contents?: true

Size: 260 Bytes

Versions: 7

Compression:

Stored size: 260 Bytes

Contents

require 'logger'

module Psychic
  module Logger
    def logger
      @logger ||= new_logger
    end

    def new_logger(_io = $stdout, _level = :debug)
      ::Logger.new(STDOUT)
    end

    def log_level=(level)
      logger.level = level
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
psychic-runner-0.0.8 lib/psychic/logger.rb
psychic-runner-0.0.7 lib/psychic/logger.rb
psychic-runner-0.0.6 lib/psychic/logger.rb
psychic-runner-0.0.5 lib/psychic/logger.rb
psychic-runner-0.0.4 lib/psychic/logger.rb
psychic-runner-0.0.3 lib/psychic/logger.rb
psychic-runner-0.0.2 lib/psychic/logger.rb