LTSV logger for Ruby application.
Add this line to your application's Gemfile:
gem 'ltsv_ng'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ltsv_ng
in config/environment.rb
Rails.application.configure do
(snip)
logger = LtsvNg::Logger.new(Rails.root.join("log/#{Rails.env}.log"))
config.logger = logger
(snip)
end
Rails.logger.info "foobar" # => level:INFO time:2015-08-05 12:55:25 +0900 uuid:958125fc-4f35-4f45-9eef-046fece2dfc2 msg:foobar
Rails.logger.info id: 123, name: "alice" # => level:INFO time:2015-08-05 12:56:03 +0900 uuid:26bd133e-94b2-450d-9ad5-1855c7649ccd id:123 name:alice
- Fork it ( https://github.com/hirocaster/ltsv_ng/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request