diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-03-28 01:57:09 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-04-10 23:10:37 +0900 |
commit | 2b58ffe125db39028bfe829eda27708a462dfeb6 (patch) | |
tree | 6b10f70976c1b3df074bbac7ce0a27aff5de62c1 /sample/testunit/tc_adder.rb | |
parent | 21992b6cbd83ba8a213f0d7a08bdf9c89e785113 (diff) | |
download | ruby-feature/logger-constructor-level.tar.gz |
lib/logger.rb: allow specifying log level via Logger.newfeature/logger-constructor-level
* lib/logger.rb (initialize): Allow specifying log severity level in
constructor. Logger.new(*args, level: lev) becomes effectively same as
Logger.new(*args).tap { |l| l.level = lev }.
* test/logger/test_logger.rb: Add test for this.
Diffstat (limited to 'sample/testunit/tc_adder.rb')
0 files changed, 0 insertions, 0 deletions