Sha256: a22db960539b5dc285b520a8b19580b88f6b5d3a04e38075ce7140ee9ffcb86e

Contents?: true

Size: 795 Bytes

Versions: 2

Compression:

Stored size: 795 Bytes

Contents

# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2019-2024, by Samuel Williams.
# Copyright, 2019, by Bryan Powell.
# Copyright, 2020, by Michael Adams.
# Copyright, 2021, by Cédric Boutillier.

require_relative "console/version"
require_relative "console/logger"
require_relative "console/warn"

module Console
	class << self
		def logger
			Logger.instance
		end
		
		def logger= instance
			Logger.instance= instance
		end
		
		def debug(...)
			Logger.instance.debug(...)
		end
		
		def info(...)
			Logger.instance.info(...)
		end
		
		def warn(...)
			Logger.instance.warn(...)
		end
		
		def error(...)
			Logger.instance.error(...)
		end
		
		def fatal(...)
			Logger.instance.fatal(...)
		end
		
		def call(...)
			Logger.instance.call(...)
		end
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
console-1.28.1 lib/console.rb
console-1.28.0 lib/console.rb