Module: MEE::RFC5424

Defined in:
lib/mee/rfc5424.rb,
lib/mee/rfc5424/version.rb

Defined Under Namespace

Classes: LoggerProtocolAdapter, Meta, NewLineFraming, OctetFraming, SocketTransport, SyslogClient, TCPFactory, TLSFactory

Constant Summary collapse

VERSION =
"0.3.0"

Class Method Summary collapse

Class Method Details

.tcp(host, port) ⇒ Object


125
126
127
128
# File 'lib/mee/rfc5424.rb', line 125

def self.tcp( host, port )
	protocol = SyslogClient.new( SocketTransport.new( TCPFactory.new( host, port ) ) )
	LoggerProtocolAdapter.new( protocol )
end

.tls(host, port) ⇒ Object


130
131
132
133
# File 'lib/mee/rfc5424.rb', line 130

def self.tls( host, port )
	protocol = SyslogClient.new( SocketTransport.new( TLSFactory.new( host, port ) )  )
	LoggerProtocolAdapter.new( protocol )
end