Ruby gem for dxw flavored rails logging extending lograge
Add the following to your gemfile
gem 'swoop', git: 'https://github.com/dxw/swoop.git', tag: 'v0.0.7'
You need to add the colored
gem to your gemfile for the environments where you want your logs to be colored.
You also need to set config.colorize_logging = true
in your rails configuration.
To make your application distinguishable in shared log stream you can set config.log_progname = "my awesome app"
in your rails configuration.
I 2015-02-17T16:05:04+00:00 my awesome app: method=GET path=/v1/users/1 format=json controller=v1/user action=show status=200 duration=407.32 view=38.43 db=0.99 params={"format":"json","id":"1"} ip=127.0.0.1
gem "colored", "~> 0.0.5"
## Releasing a new version
Run $ bundle exec rake release
. This will attach a version number tag of the form v0.0.7
to HEAD and push it to GitHub.