Class: SensuRunCheck::NilLog

Inherits:
Object
  • Object
show all
Defined in:
lib/sensu-run-check/runner.rb

Overview

Swallow logs

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNilLog

Returns a new instance of NilLog.



137
138
139
# File 'lib/sensu-run-check/runner.rb', line 137

def initialize
  self.class.create_level_methods
end

Class Method Details

.create_level_methodsObject



141
142
143
144
145
146
147
# File 'lib/sensu-run-check/runner.rb', line 141

def self.create_level_methods
  Sensu::Logger::LEVELS.each do |level|
    define_method(level) do |*args|
      # Do nothing
    end
  end
end