Sha256: 53b71843f7fb671f5db53a2f7908384b498ad2ecccea82768b91fd2314ea4a75

Contents?: true

Size: 574 Bytes

Versions: 1

Compression:

Stored size: 574 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

1 entries across 1 versions & 1 rubygems

Version Path
legion-logging-1.1.3 lib/legion/logging.rb