Sha256: 2212ef209d72e2c18724df4c637518108aac6d3b5a751087e2fdce043a7f10cb
Contents?: true
Size: 482 Bytes
Versions: 2
Compression:
Stored size: 482 Bytes
Contents
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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
remote_syslog_logger_custom-1.0.4 | lib/remote_syslog_logger_custom.rb |
remote_syslog_logger_custom-1.0.3 | lib/remote_syslog_logger_custom.rb |