Sha256: 3a8810d2be8954f7ddc53a624302003aba59e4fba4d31eb0d6eec01c3ac5e0d6
Contents?: true
Size: 365 Bytes
Versions: 3
Compression:
Stored size: 365 Bytes
Contents
module Restfulness class VerboseFormatter def call(serverity, datetime, progname, msg) time = Time.now.strftime('%Y-%m-%d %H:%M:%S.%L') sym = case serverity when 'ERROR' 'EE' when 'INFO' '--' else '**' end "#{sym} #{time}: #{msg}\n" end end end
Version data entries
3 entries across 3 versions & 1 rubygems