lib/celluloid.rb in celluloid-0.0.3 vs lib/celluloid.rb in celluloid-0.1.0
- old
+ new
@@ -1,19 +1,28 @@
-module Celluloid
- VERSION = File.read File.expand_path('../../VERSION', __FILE__)
-
- def self.version; VERSION; end
-end
+require 'logger'
+require 'celluloid/version'
require 'celluloid/actor'
require 'celluloid/actor_proxy'
require 'celluloid/calls'
require 'celluloid/core_ext'
require 'celluloid/events'
require 'celluloid/linking'
require 'celluloid/mailbox'
require 'celluloid/registry'
require 'celluloid/responses'
require 'celluloid/supervisor'
-require 'celluloid/waker'
-require 'celluloid/future'
+require 'celluloid/future'
+
+module Celluloid
+ @@logger_lock = Mutex.new
+ @@logger = Logger.new STDERR
+
+ def self.logger
+ @@logger_lock.synchronize { @@logger }
+ end
+
+ def self.logger=(logger)
+ @@logger_lock.synchronize { @@logger = logger }
+ end
+end
\ No newline at end of file