hirakiuc/tinybucket

View on GitHub
lib/tinybucket/null_logger.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

module Tinybucket
  class NullLogger
    attr_accessor :level

    def fatal(_progname = nil, &_block); end

    def fatal?
      false
    end

    def error(_progname = nil, &_block); end

    def error?
      false
    end

    def warn(_progname = nil, &_block); end

    def warn?
      false
    end

    def info(_progname = nil, &_block); end

    def info?
      false
    end

    def debug(_progname = nil, &_block); end

    def debug?
      false
    end
  end
end