Sha256: db4bc986b064ace10f70063d125b5a560dabb5f39591419119e5698f5b4ce2a2

Contents?: true

Size: 624 Bytes

Versions: 3

Compression:

Stored size: 624 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(options = {})
        output(options)
        log_level(options[: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.1.0 lib/legion/logging.rb
legion-logging-1.0.0 lib/legion/logging.rb
legion-logging-0.2.0 lib/legion/logging.rb