Sha256: b8593e9062bab8dcaba1dbbc8241e4e9b1790a27817b93132ca6a3243f401086

Contents?: true

Size: 329 Bytes

Versions: 22

Compression:

Stored size: 329 Bytes

Contents

# -*- coding: utf-8 -*-
require 'tengine/support'

# NullLoggerはロガーのNull Objectです。
# Loggerと同じインタフェースを持ちますが何も動作しません。
class Tengine::Support::NullLogger
  %w[debug info warn error fatal].each do |log_level|
    class_eval("def #{log_level}(*args); end")
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
tengine_support-0.3.27 lib/tengine/support/null_logger.rb
tengine_support-0.3.26 lib/tengine/support/null_logger.rb
tengine_support-0.3.25 lib/tengine/support/null_logger.rb
tengine_support-0.3.24 lib/tengine/support/null_logger.rb
tengine_support-0.3.22 lib/tengine/support/null_logger.rb
tengine_support-0.3.21 lib/tengine/support/null_logger.rb
tengine_support-0.3.20 lib/tengine/support/null_logger.rb
tengine_support-0.3.19 lib/tengine/support/null_logger.rb
tengine_support-0.3.18 lib/tengine/support/null_logger.rb
tengine_support-0.3.17 lib/tengine/support/null_logger.rb
tengine_support-0.3.16 lib/tengine/support/null_logger.rb
tengine_support-0.3.15 lib/tengine/support/null_logger.rb
tengine_support-0.3.14 lib/tengine/support/null_logger.rb
tengine_support-0.3.13 lib/tengine/support/null_logger.rb
tengine_support-0.3.12 lib/tengine/support/null_logger.rb
tengine_support-0.3.11 lib/tengine/support/null_logger.rb
tengine_support-0.3.10 lib/tengine/support/null_logger.rb
tengine_support-0.3.9 lib/tengine/support/null_logger.rb
tengine_support-0.3.8 lib/tengine/support/null_logger.rb
tengine_support-0.3.7 lib/tengine/support/null_logger.rb