Module: FastRuby::SingletonLogger
- Included in:
- FastRuby
- Defined in:
- lib/fastruby/logging.rb
Instance Method Summary collapse
Instance Method Details
#logger ⇒ Object
23 24 25 26 27 28 29 30 31 |
# File 'lib/fastruby/logging.rb', line 23 def logger require "logger" unless defined? Logger unless @logger @logger = Logger.new(ENV['FASTRUBY_LOG'] || "/dev/stdout") @logger.level = (ENV['FASTRUBY_LOG_LEVEL']||"2").to_i end @logger end |