Class: SyslogProtocol::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/syslog_protocol/logger.rb

Instance Method Summary collapse

Constructor Details

#initialize(hostname, tag, facility) ⇒ Logger

Returns a new instance of Logger.



3
4
5
6
7
8
# File 'lib/syslog_protocol/logger.rb', line 3

def initialize(hostname, tag, facility)
  @packet = Packet.new
  @packet.hostname = hostname
  @packet.tag      = tag
  @packet.facility = facility
end