Module: TestProf::Logging
- Included in:
- Minitest::TestProf::BaseReporter, TestProf, AnyFixture, EventProf::RSpecListener, FactoryDoctor, FactoryDoctor::RSpecListener, FactoryProf, FactoryProf::Printers::Flamegraph, FactoryProf::Printers::Simple, RSpecDissect, RSpecDissect::Listener, RSpecStamp, RSpecStamp::RSpecListener, RSpecStamp::Stamper, RubyProf, RubyProf::Report, StackProf, TagProf::Printers::HTML, TagProf::Printers::Simple, TagProf::RSpecListener
- Defined in:
- lib/test_prof/logging.rb
Overview
Helper for output printing
Constant Summary collapse
- COLORS =
{ info: "\e[34m", # blue warn: "\e[33m", # yellow error: "\e[31m", # red }.freeze
Instance Method Summary collapse
Instance Method Details
#build_log_msg(level, msg) ⇒ Object
16 17 18 |
# File 'lib/test_prof/logging.rb', line 16 def build_log_msg(level, msg) colorize(level, "[TEST PROF #{level.to_s.upcase}] #{msg}") end |