Sha256: 89d225bd8a9247e354f9a3249c77aa9fac7adf4a65072637d7242ab25db49be3

Contents?: true

Size: 640 Bytes

Versions: 7

Compression:

Stored size: 640 Bytes

Contents

module Semlogr
  class NullLogger
    def debug?
      false
    end

    def info?
      false
    end

    def warn?
      false
    end

    def error?
      false
    end

    def fatal?
      false
    end

    def debug(template = nil, error: nil, **properties, &block)
    end

    def info(template = nil, error: nil, **properties, &block)
    end

    def warn(template = nil, error: nil, **properties, &block)
    end

    def error(template = nil, error: nil, **properties, &block)
    end

    def fatal(template = nil, error: nil, **properties, &block)
    end

    def with_context(**_properties)
      self
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
semlogr-0.3.0 lib/semlogr/null_logger.rb
semlogr-0.2.3 lib/semlogr/null_logger.rb
semlogr-0.2.2 lib/semlogr/null_logger.rb
semlogr-0.2.1 lib/semlogr/null_logger.rb
semlogr-0.2.0 lib/semlogr/null_logger.rb
semlogr-0.1.3 lib/semlogr/null_logger.rb
semlogr-0.1.2 lib/semlogr/null_logger.rb