Sha256: 2494a126d961f3aea8f5e8b4f8b291c01d6b7420e3fa3ad1cae7909c36d18c58

Contents?: true

Size: 371 Bytes

Versions: 3

Compression:

Stored size: 371 Bytes

Contents

class Shoes
  module Logger
    class Ruby < SimpleDelegator
      def initialize(device = STDERR)
        logger = ::Logger.new(device)
        logger.formatter = proc do |severity, _datetime, _progname, message|
          "%s: %s\n" % [severity, message]
        end
        super(logger)
      end
    end
  end
end

Shoes::Logger.register(:ruby, Shoes::Logger::Ruby)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shoes-core-4.0.0.pre8 lib/shoes/logger/ruby.rb
shoes-core-4.0.0.pre7 lib/shoes/logger/ruby.rb
shoes-core-4.0.0.pre6 lib/shoes/logger/ruby.rb