Sha256: 3f5937be3305fb260a6685a176bebfd5a9043a0a34c611b26ed1678ce80df273
Contents?: true
Size: 462 Bytes
Versions: 1
Compression:
Stored size: 462 Bytes
Contents
require 'remote_syslog_logger/udp_sender' require 'remote_syslog_logger/tcp_sender' require 'logger' module RemoteSyslogLogger 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
remote_syslog_logger_tcp-1.0.3 | lib/remote_syslog_logger.rb |