Project

General

Profile

Actions

Feature #11633

closed

NilLogger class

Added by kwando (Hannes Nevalainen) over 8 years ago. Updated about 8 years ago.

Status:
Closed
Target version:
-
[ruby-core:71250]

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

Also available in: Atom PDF

Like0
Like0Like0Like0