Changeset [9b99fd0deac808dac88fc3485b6af1a962e3f4da] by Akshay Moghe

September 16th, 2013 @ 04:37 PM

Enhance the logging subsystem.

This patch enhances the logging functionality in a few
ways, namely:

  1. Separate the request tracing from logging
  2. logging level is now user controllable a. user can specify custom logger, thereby controlling how+where (level+file) messages are logged to.
  3. tracing is individually controllable a. user can specify custom trace logger, getting all the benefits as stated above.

This patch retains the old logging mechanism (via the
new log_ mechanism. The old mechanism, if used,
emits deprecation warnings to stderr.

Of course, logging unit tests have been changed to test
this new functionality.
https://github.com/macournoyer/thin/commit/9b99fd0deac808dac88fc348...

Committed by Akshay Moghe

  • M lib/thin/command.rb
  • M lib/thin/connection.rb
  • M lib/thin/controllers/cluster.rb
  • M lib/thin/controllers/controller.rb
  • M lib/thin/controllers/service.rb
  • M lib/thin/daemonizing.rb
  • M lib/thin/logging.rb
  • M lib/thin/runner.rb
  • M lib/thin/server.rb
  • M lib/thin/stats.rb
  • M spec/configs/cluster.yml
  • M spec/logging_spec.rb
  • M spec/runner_spec.rb
  • M spec/server/builder_spec.rb
  • M spec/spec_helper.rb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป