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