Class: PushyDaemon::Endpoint

Inherits:
Object
  • Object
show all
Defined in:
lib/pushyd/endpoint.rb

Direct Known Subclasses

Proxy, Shouter

Instance Method Summary collapse

Constructor Details

#initializeEndpoint

Returns a new instance of Endpoint.



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/pushyd/endpoint.rb', line 12

def initialize
  # Prepare logger (may be NIL > won't output anything)
  logfile = Conf[:log]

  # Create the logger
  @logger = PushyLogger.new(logfile, LOG_ROTATION)
  @logger.add Logger::INFO, "starting #{self.class.name.to_s}"

  # Declare we're now logging
  puts "#{self.class} logging to #{logfile}"
end