Sha256: e6a79697b069aaa5d3cfb2a557e0bcc28633f2b60a98f9a0dc09cbf9974f5d5e
Contents?: true
Size: 548 Bytes
Versions: 1
Compression:
Stored size: 548 Bytes
Contents
require 'date' module Tracerius module Formatters class Basic def self.call start = ::DateTime.now.strftime('%Q').to_i / 1000.0 proc do |event, file, line, id, binding, classname| now_ms = ::DateTime.now.strftime('%Q').to_i / 1000.0 duration = '%.3f' % (now_ms - start) start = ::DateTime.now.strftime('%Q').to_i / 1000.0 printf "%s %s %8s %s:%-2d %10s %8s\n", ::DateTime.now.strftime("%S.%L"), duration, event, file, line, id, classname end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tracerius-0.1.0 | lib/tracerius/formatters/basic.rb |