Project

swoop

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Ruby gem for dxw flavored rails logging.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.6
~> 10.0
 Project Readme

Swoop

Ruby gem for dxw flavored rails logging extending lograge

Installation

Add the following to your gemfile

gem 'swoop', git: 'https://github.com/dxw/swoop.git', tag: 'v0.0.7'

Configuratuin

Colorise logs

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.

Application name

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

Installation

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.