README.md in tee_logger-2.6.0 vs README.md in tee_logger-2.7.0

- old
+ new

@@ -55,10 +55,14 @@ tl.debug 'hello' tl.debug(:progname) { 'hello world' } tl.progname = 'App' tl.debug 'hello tee_logger' +# disable only when specified +tl.info 'this message is logfile only', :console +tl.info 'this message is console only', :logfile + # disable console output tl.disable(:console) tl.info 'this message is logfile only' # enable console output @@ -79,33 +83,47 @@ end tl.info 'this message is logfile and console' # and others like Logger's tl.debug? # => true -tl.info? -tl.warn? -tl.error? -tl.fatal? +tl.info? # => true +tl.warn? # => true +tl.error? # => true +tl.fatal? # => true tl.level # => 0 tl.level = Logger::INFO tl.debug 'this message is not logging' tl.formatter # => nil or Proc -tl.formatter = proc {|severity, datetime, progname, message| "#{severity}:#{message}" } +tl.formatter = proc { |severity, datetime, progname, message| "#{severity}:#{message}" } + +tl.datetime_format # => nil or Proc +tl.datetime_format = '%Y%m%d %H%M%S ' ``` ## Development -After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. +After checking out the repo, run `bundle install` to install dependencies. +Then, run `rake rspec` to run the tests. +You can also run `budle exec pry -r ./lib/tee_logger` for an interactive prompt +that will allow you to experiment. -To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org). +To install this gem onto your local machine, run `bundle exec rake install`. +To release a new version, update the version number in `version.rb`, +and then run `bundle exec rake release`, +which will create a git tag for the version, +push git commits and tags, +and push the `.gem` file to [rubygems.org](https://rubygems.org). ## Contributing -Bug reports and pull requests are welcome on GitHub at https://github.com/k-ta-yamada/tee_logger. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct. +Bug reports and pull requests are welcome on GitHub at https://github.com/k-ta-yamada/tee_logger. +This project is intended to be a safe, +welcoming space for collaboration, +and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct. ## License The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).