Sha256: 48a5d739dc3afccfd52de64429692bddfc0e5af439971d2955e294b93522653b
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
# Alephant::Logger Logger functionality for Alephant [](https://travis-ci.org/BBC-News/alephant-logger) [](http://badge.fury.io/rb/alephant-logger) ## Installation Add this line to your application's Gemfile: gem 'alephant-logger' And then execute: $ bundle Or install it yourself as: $ gem install alephant-logger ## Usage ```rb require 'alephant/logger' # Using the standard logger class IncludesLogger include Alephant::Logger def calls_logger logger.warn "MUCH WARN. WOW." end end # Sets a logger class SetsLogger include Alephant::Logger def calls_logger Alephant::Logger.set_logger(CustomLogger.new) logger.warn "SUCH CUSTOM. MUCH LOG." end end ``` ## Contributing 1. Fork it ( http://github.com/<my-github-username>/alephant-logger/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alephant-logger-0.0.2 | README.md |