Sha256: 2c8ecb5bf0da359f96ea6e17f0e7c073ce4425123b492d3eb8672c22fe0bd238
Contents?: true
Size: 617 Bytes
Versions: 1
Compression:
Stored size: 617 Bytes
Contents
# frozen_string_literal: true class Printer # Log statement when a file starts loading def out_start(file, type) printf("🚥 [RequireBench-#{type}] 📖 %s 🚥\n", file) end # Log statement when a file completed loading def out_consume(seconds, file, type) printf("🚥 [RequireBench-#{type}] ☑️ %10f %s 🚥\n", seconds, file) end # Log statement when a file raises an error while loading def out_err(error, file, type) printf( "🚥 [RequireBench-#{type}] ❌ '#{error.class}: #{error.message}' loading %s 🚥\n#{error.backtrace.join("\n")}", file, ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
require_bench-1.0.4 | lib/require_bench/printer.rb |