Class | YARD::Logger |
In: |
lib/yard/logging.rb
|
Parent: | ::Logger |
Handles console logging for info, warnings and errors. Uses the stdlib Logger class in Ruby for all the backend logic.
show_backtraces | [W] |
Sets the logger level for the duration of the block
@example
log.enter_level(Logger::ERROR) do YARD.parse_string "def x; end" end
@param [Fixnum] new_level the logger level for the duration of the block.
values can be found in Ruby's Logger class.
@yield the block with the logger temporarily set to new_level