All Projects → phallguy → shog

phallguy / shog

Licence: MIT license
Simple colored logging for rails 4 and 5 apps

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to shog

sexy form.rb
Dead simple HTML form field builder for Ruby with built-in support for many popular UI libraries such as Bootstrap
Stars: ✭ 38 (-44.93%)
Mutual labels:  ruby-on-rails
gitlabFAQ
🐧 Gitlab常见问题和有用信息、链接 📝
Stars: ✭ 21 (-69.57%)
Mutual labels:  ruby-on-rails
railways
A plugin for RubyMine and IntelliJ IDEA Ultimate that adds a panel with routes of Ruby on Rails application.
Stars: ✭ 44 (-36.23%)
Mutual labels:  ruby-on-rails
Self-Paced-Coding-Curriculum
Full-stack self-paced coding curriculum I created to teach myself and others how to code.
Stars: ✭ 12 (-82.61%)
Mutual labels:  ruby-on-rails
docker-rails-demo
Demo app for Rails, Docker and Webpack
Stars: ✭ 29 (-57.97%)
Mutual labels:  ruby-on-rails
active record-updated at
Touch `updated_at` by default with calls to `update_all` and `update_column(s)`
Stars: ✭ 27 (-60.87%)
Mutual labels:  ruby-on-rails
rubynostrilhos
Blog about Ruby on Rails (pt-br)
Stars: ✭ 16 (-76.81%)
Mutual labels:  ruby-on-rails
stimulus reflex todomvc
An implementation of TodoMVC using Ruby on Rails, StimulusJS, and StimulusReflex
Stars: ✭ 50 (-27.54%)
Mutual labels:  ruby-on-rails
lamby-cookiecutter
AWS SAM Cookiecutter to Quick Start Rails & Lambda 🐑🛤
Stars: ✭ 17 (-75.36%)
Mutual labels:  ruby-on-rails
i18n lazy scope
Use lazy lookup with custom i18n scopes.
Stars: ✭ 11 (-84.06%)
Mutual labels:  ruby-on-rails
Devise-Omniauth-Multiple-Providers
Devise Multiple Omniauth Providers
Stars: ✭ 34 (-50.72%)
Mutual labels:  ruby-on-rails
challenges-back-end
Repositório referente à desafios de Back End da womakerscode
Stars: ✭ 68 (-1.45%)
Mutual labels:  ruby-on-rails
exception hunter
Crash reporting engine to hunt down bugs 🐞
Stars: ✭ 78 (+13.04%)
Mutual labels:  ruby-on-rails
facebook-clone
Building Facebook clone. As usual, any additional styling will be up to you but the really important stuff is to get the data and back end working properly.
Stars: ✭ 14 (-79.71%)
Mutual labels:  ruby-on-rails
prefixed ids
Friendly Prefixed IDs for your Ruby on Rails models
Stars: ✭ 159 (+130.43%)
Mutual labels:  ruby-on-rails
ruby-best-practices-list
A list of well-written Ruby codebases to help you extract the best practices.
Stars: ✭ 123 (+78.26%)
Mutual labels:  ruby-on-rails
bioportal web ui
A Rails application for biological ontologies
Stars: ✭ 20 (-71.01%)
Mutual labels:  ruby-on-rails
campaign-manager
The Camapign Management UI for RTB4Free, the open source bidder / DSP.
Stars: ✭ 24 (-65.22%)
Mutual labels:  ruby-on-rails
graphql-ruby-sample
Sample application for demonstrating GraphQL Ruby on Rails integration
Stars: ✭ 16 (-76.81%)
Mutual labels:  ruby-on-rails
MyopicVicar
MyopicVicar (short-sighted clergyman!) is an open-source genealogy record database and search engine. It powers the FreeREG database of parish registers, the FreeCEN database of census records, the next version of FreeBMD database of Civil Registration indexes and other Genealogical applications.
Stars: ✭ 40 (-42.03%)
Mutual labels:  ruby-on-rails

Shog

Gem Version Code Climate Circle CI

(Also check scorpion for a light-weight IoC container)

Simple colored logging for rails 4 and 5 apps.

There are plenty of logging frameworks for making tags (like timestamp, log level, etc.) more colorful - but what about the details in the line of text? What about the HTTP method used to make the request? What about the render times?

Shog adds colors to highlight context and make it easier to pick out the important parts of the message. Unformatted logs like this

Plain Logs

become easy to ready and process logs like this

Shogged Logs

Using Shog

Just add the following to your Gemfile to enable shiny output logs.

gem 'shog'

Shog comes built in with some sane defaults for rails apps. But you can customize the output to match additional log message by your app, or to use different options in production.

To change the defaults, add shog.rb to your config/initializers folder

Shog.configure do
  if ::Rails.env.production?
    reset_config!
    timestamp
  end

  match /execution expired/ do |msg,matches|
    # Highlight timeout errors
    msg.red
  end
end

See Shog::Formatter#configure for more configuration options.

Contributing

  1. Fork it ( https://github.com/phallguy/shog/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 a new Pull Request

License

The MIT License (MIT)

Copyright (c) 2014 Paul Alexander

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].