lib/require_bench/printer.rb in require_bench-1.0.4.pre.alpha.4 vs lib/require_bench/printer.rb in require_bench-1.0.4.pre.alpha.5
- old
+ new
@@ -1,20 +1,20 @@
# frozen_string_literal: true
class Printer
# Log statement when a file starts loading
- def s(file, type)
+ def out_start(file, type)
printf "🚥 [RequireBench-#{type}] 📖 %s 🚥\n", file
rotate!
end
# Log statement when a file completed loading
- def p(seconds, file, type)
+ 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 e(error, file, type)
+ def out_err(error, file, type)
printf "🚥 [RequireBench-#{type}] ❌ '#{error.class}: #{error.message}' loading %s 🚥\n#{error.backtrace.join("\n")}",
file
end
end