Sha256: ab80c643b9b167a9e916c2d0799343de5197f41f4b2992b6daa0beba0cf2d89b

Contents?: true

Size: 509 Bytes

Versions: 7

Compression:

Stored size: 509 Bytes

Contents

# -*- ruby -*-
# vim: set nosta noet ts=4 sw=4:
# frozen_string_literal: true

require 'logger'
require 'loggability' unless defined?( Loggability )


module Loggability::Constants

	# Log level names and their Logger constant equivalents
	LOG_LEVELS = {
		:debug => Logger::DEBUG,
		:info  => Logger::INFO,
		:warn  => Logger::WARN,
		:error => Logger::ERROR,
		:fatal => Logger::FATAL,
	}.freeze

	# Logger levels -> names
	LOG_LEVEL_NAMES = LOG_LEVELS.invert.freeze


end # module Loggability::Constants


Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
loggability-0.18.2 lib/loggability/constants.rb
loggability-0.18.1 lib/loggability/constants.rb
loggability-0.18.0 lib/loggability/constants.rb
loggability-0.17.0 lib/loggability/constants.rb
loggability-0.16.0 lib/loggability/constants.rb
loggability-0.15.1 lib/loggability/constants.rb
loggability-0.15.0.pre20190714094638 lib/loggability/constants.rb