Class: Brakeman::Logger::Debug
- Defined in:
- lib/brakeman/logger.rb
Instance Method Summary collapse
Methods inherited from Plain
#alert, #announce, #initialize, #time_step
Methods inherited from Base
#alert, #announce, #cleanup, #color, #color?, #initialize, #log, #show_timing?, #spin, #update_progress
Constructor Details
This class inherits a constructor from Brakeman::Logger::Plain
Instance Method Details
#context(description) ⇒ Object
135 136 137 138 139 |
# File 'lib/brakeman/logger.rb', line 135 def context(description, &) log "#{description}..." time_step(description, &) end |
#debug(message) ⇒ Object
131 132 133 |
# File 'lib/brakeman/logger.rb', line 131 def debug() log color(, :gray) end |
#single_context(description) ⇒ Object
141 142 143 144 145 146 147 148 149 150 |
# File 'lib/brakeman/logger.rb', line 141 def single_context(description, &) debug "Processing #{description}" if show_timing? # Even in debug, only show timing for each file if asked time_step(description, &) else yield end end |