lib/bluepill/group.rb in bluepill-0.0.1 vs lib/bluepill/group.rb in bluepill-0.0.2
- old
+ new
@@ -5,18 +5,13 @@
def initialize(name, options = {})
self.name = name
self.processes = []
self.logger = options[:logger]
-
- if self.logger
- logger_prefix = self.name ? "#{self.name}:" : nil
- self.process_logger = Bluepill::Logger.new(self.logger, logger_prefix)
- end
end
def add_process(process)
- process.logger = Logger.new(self.process_logger, process.name)
+ process.logger = self.logger.prefix_with(process.name)
self.processes << process
end
def tick
self.each_process do |process|
\ No newline at end of file