require 'remote_syslog_logger_custom/udp_sender' require 'remote_syslog_logger_custom/tcp_sender' require 'logger' module RemoteSyslogLoggerCustom VERSION = '1.0.3' def self.new(remote_hostname, remote_port, options = {}) protocol = options.delete(:protocol) if protocol && protocol.to_sym == :tcp Logger.new(TcpSender.new(remote_hostname, remote_port, options)) else Logger.new(UdpSender.new(remote_hostname, remote_port, options)) end end end