Class: BatchKit::Logging::NullLogger

Inherits:
Object
  • Object
show all
Defined in:
lib/batch-kit/logging/null_logger.rb

Overview

Implements a NULL logger, i.e. a logger that throws away log messages. This logger should be used when no logging is desired.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.instanceObject


10
11
12
# File 'lib/batch-kit/logging/null_logger.rb', line 10

def self.instance
    @instance ||= self.new
end

Instance Method Details

#log_level=(level) ⇒ Object


15
16
# File 'lib/batch-kit/logging/null_logger.rb', line 15

def log_level=(level)
end

#log_msg(level, msg) ⇒ Object


28
29
# File 'lib/batch-kit/logging/null_logger.rb', line 28

def log_msg(level, msg)
end