Actions
Feature #11633
closedNilLogger class
    Feature #11633:
    NilLogger 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) almost 10 years ago
          Updated by naruse (Yui NARUSE) almost 10 years ago
          
          
        
        
      
      - Status changed from Open to Assigned
- Assignee set to sonots (Naotoshi Seo)
        
           Updated by sonots (Naotoshi Seo) almost 10 years ago
          Updated by sonots (Naotoshi Seo) almost 10 years ago
          
          
        
        
      
      logger = Logger.new(nil)
logger.fatal { 'foo' } # no print
Is this not enough?
        
           Updated by sonots (Naotoshi Seo) over 9 years ago
          Updated by sonots (Naotoshi Seo) over 9 years ago
          
          
        
        
      
      - Status changed from Assigned to Closed
Let me close
Actions