class YARD::Logger
def enter_level(new_level = level)
- Yield: - the block with the logger temporarily set to +new_level+
Parameters:
-
new_level
(Fixnum
) -- the logger level for the duration of the block.
def enter_level(new_level = level) old_level = level self.level = new_level yield ensure self.level = old_level end