Module: RightSpeed
- Defined in:
- lib/right_speed.rb,
lib/right_speed/env.rb,
lib/right_speed/const.rb,
lib/right_speed/logger.rb,
lib/right_speed/server.rb,
lib/right_speed/handler.rb,
lib/right_speed/version.rb,
lib/right_speed/listener.rb,
lib/right_speed/processor.rb,
lib/right_speed/worker/base.rb,
lib/right_speed/worker/fair.rb,
lib/right_speed/ractor_helper.rb,
lib/right_speed/worker/accepter.rb,
lib/right_speed/connection_closer.rb,
lib/right_speed/worker/roundrobin.rb
Defined Under Namespace
Modules: Env, Listener, Processor, RactorHelper, Worker Classes: ConnectionCloser, Handler, Server
Constant Summary collapse
- SOFTWARE_NAME =
"RightSpeed #{VERSION} (#{RUBY_ENGINE} #{RUBY_VERSION}p#{RUBY_PATCHLEVEL} [#{RUBY_PLATFORM}])".freeze
- RACK_VERSION =
Rack::VERSION.freeze
- CONFIG_HOOK_KEY =
'right_speed_config_hooks'
- VERSION =
"0.2.0"
Class Method Summary collapse
Class Method Details
.logger ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/right_speed/logger.rb', line 2 def self.logger return Ractor.current[:logger] if Ractor.current[:logger] logger = Logger.new($stderr) logger.formatter = lambda {|severity, datetime, progname, msg| "[#{datetime}] #{severity} #{msg}\n" } Ractor.current[:logger] = logger logger end |