Actions
Feature #11633
closedNilLogger class
Description
I'd like to have a NilLogger class in ruby which have the same api as the stdlib Logger object, but where all logging methods is just noop:s.
Updated by naruse (Yui NARUSE) over 8 years ago
- Status changed from Open to Assigned
- Assignee set to sonots (Naotoshi Seo)
Updated by sonots (Naotoshi Seo) over 8 years ago
logger = Logger.new(nil)
logger.fatal { 'foo' } # no print
Is this not enough?
Updated by sonots (Naotoshi Seo) about 8 years ago
- Status changed from Assigned to Closed
Let me close
Actions
Like0
Like0Like0Like0