Sha256: 2846f6e1170ccfc8f7437f3683921895b28fceaf4629758977d876f93fbb3104
Contents?: true
Size: 365 Bytes
Versions: 5
Compression:
Stored size: 365 Bytes
Contents
require "logger" module Testable class Logger def create(output = $stdout) logger = ::Logger.new(output) logger.progname = 'Testable' logger.level = :UNKNOWN logger.formatter = proc do |severity, time, progname, msg| "#{time.strftime('%F %T')} - #{severity} - #{progname} - #{msg}\n" end logger end end end
Version data entries
5 entries across 5 versions & 1 rubygems