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.



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

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

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