Sha256: 8339dd5693a3d68611b1bfbcb28a12b9ea335884e6c96f1215b280175c15f1ca

Contents?: true

Size: 670 Bytes

Versions: 1

Compression:

Stored size: 670 Bytes

Contents

module Le
  module Host

    def self.new(key, location, local)

      Le::Host::HTTP.new(key, location, local)
      
    end
  
    module InstanceMethods
      def formatter
	proc do |severity, datetime, progname, msg|
	  	message = "#{datetime} "
      	message << format_message(msg, severity)
    end
	end
  
      def format_message(message_in, severity)
		message_in = message_in.lstrip

		message_out = ""
		message_out = "severity=#{severity}, "
		case message_in
		when String
		  message_out << message_in
		else
		  message_out << message_in.inspect
		end
		message_out
      end
    end
  end
end

require File.join(File.dirname(__FILE__), 'host', 'http')

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
le-1.9 ./lib/le/host.rb