Sha256: fd16ecb96beb291b46d201241328fb480d0c8e14c9a970c62861cc2172756948
Contents?: true
Size: 626 Bytes
Versions: 2
Compression:
Stored size: 626 Bytes
Contents
require 'legion/logging/version' require 'legion/logging/logger' require 'legion/logging/methods' require 'legion/logging/builder' require 'logger' require 'rainbow' module Legion module Logging class << self include Legion::Logging::Methods include Legion::Logging::Builder attr_reader :log, :color def level @log.level end def setup(level: 'info', **options) output(options) log_level(level) log_format(options) @color = options[:color] @color = true if options[:color].nil? && options[:log_file].nil? end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
legion-logging-1.1.2 | lib/legion/logging.rb |
legion-logging-1.1.1 | lib/legion/logging.rb |