Sha256: 76532d2c0ecbf10aacbc349bb32aed207814beb1316bd8a51400a91f7973fb80

Contents?: true

Size: 481 Bytes

Versions: 4

Compression:

Stored size: 481 Bytes

Contents

require 'legion/logging/methods'
require 'legion/logging/builder'

module Legion
  module Logging
    class Logger
      attr_reader :log, :color
      include Legion::Logging::Methods
      include Legion::Logging::Builder

      def initialize(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

4 entries across 4 versions & 1 rubygems

Version Path
legion-logging-0.3.1 lib/legion/logging/logger.rb
legion-logging-0.1.4 lib/legion/logging/logger.rb
legion-logging-0.1.3 lib/legion/logging/logger.rb
legion-logging-0.1.2 lib/legion/logging/logger.rb