Changeset [9b99fd0deac808dac88fc3485b6af1a962e3f4da] by Akshay Moghe
Revision 9b99fd0deac808dac88fc3485b6af1a962e3f4da,
committed by Akshay Moghe
· September 16th, 2013 @ 04:37 PM
Enhance the logging subsystem.
This patch enhances the logging functionality in a few
ways, namely:
- Separate the request tracing from logging
- logging level is now user controllable a. user can specify custom logger, thereby controlling how+where (level+file) messages are logged to.
- 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...
15 changed files
-
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