[naily] Now Astute share logger with Naily.

This commit is contained in:
Andrey Danin 2013-01-11 14:51:15 +04:00 committed by default
parent 192663eeac
commit a847957021

View File

@ -11,11 +11,16 @@ module Naily
autoload 'Dispatcher', 'naily/dispatcher'
autoload 'Reporter', 'naily/reporter'
@logger ||= Logger.new(STDOUT)
Astute.logger = @logger
def self.logger
@logger ||= Logger.new(STDOUT)
@logger
end
def self.logger=(logger)
Astute.logger = logger
@logger = logger
end
end