Sha256: 784eddd83dc8bfa332f66c7cdb7c132474b5b1b4eff3e89e433b751b033a6ee0

Contents?: true

Size: 386 Bytes

Versions: 11

Compression:

Stored size: 386 Bytes

Contents

require 'logger'

module Yoti
  module Log
    class << self
      def logger
        @logger || create_logger(STDOUT)
      end

      def output(output_stream)
        create_logger(output_stream)
      end

      private

      def create_logger(output_stream)
        @logger = Logger.new(output_stream)
        @logger.progname = 'Yoti'
        @logger
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
yoti-1.9.0 lib/yoti/util/log.rb
yoti-1.8.0 lib/yoti/util/log.rb
yoti-1.7.1 lib/yoti/util/log.rb
yoti-1.7.0 lib/yoti/util/log.rb
yoti-1.6.4 lib/yoti/util/log.rb
yoti-1.6.3 lib/yoti/util/log.rb
yoti-1.6.2 lib/yoti/util/log.rb
yoti-1.6.1 lib/yoti/util/log.rb
yoti-1.6.0 lib/yoti/util/log.rb
yoti-1.5.0 lib/yoti/util/log.rb
yoti-1.4.0 lib/yoti/util/log.rb