Class: PushyDaemon::Endpoint
- Inherits:
-
Object
- Object
- PushyDaemon::Endpoint
- Defined in:
- lib/pushyd/endpoint.rb
Instance Method Summary collapse
-
#initialize ⇒ Endpoint
constructor
A new instance of Endpoint.
Constructor Details
#initialize ⇒ Endpoint
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 |