Sha256: 97080b39159013cea345d402da6037259725cf25ddd5451b8f536fedd14b08be

Contents?: true

Size: 578 Bytes

Versions: 3

Compression:

Stored size: 578 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 :color

      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

3 entries across 3 versions & 1 rubygems

Version Path
legion-logging-1.2.0 lib/legion/logging.rb
legion-logging-1.1.5 lib/legion/logging.rb
legion-logging-1.1.4 lib/legion/logging.rb