Class: Object

Inherits:
BasicObject
Defined in:
lib/pubsub/logger.rb

Constant Summary collapse

@@logger =
nil

Instance Method Summary collapse

Instance Method Details

#loggerObject



5
6
7
8
9
10
11
# File 'lib/pubsub/logger.rb', line 5

def logger
  unless @@logger
    @@logger = Logger.new(STDERR)
    @@logger.level = Logger::DEBUG
  end
  @@logger
end