Skip to content

NelsonScott/minimal_logging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MinimalLogging

Minimal Logging removes some of the noise from the Rails Server log so you can focus on the most important events. It also formats parameters and actions in a more readable way to quickly see what's going on.

So you can go from this Image of Normal Rails Log

To this Image of Rails Log with Minimal Logging

Installation

Add this to your application's Gemfile:

group :development do
  gem 'minimal_logging'
end

And then execute:

$ bundle

Or install it yourself:

$ gem install minimal_logging

Usage

You can set minimal_logging's configuration options in application.rb or development.rb in your config.

By default, minimal_logging will change your log_level to :info. If you want to set the log level yourself, you can turn this behavior off.

config.minimal_logging.change_log_level = false

You can turn logging assets back on. Much of the logic for quietting assets thanks to the quiet_assets gem.

config.minimal_logging.quiet_assets = false

And you can turn off minimal_logging itself.

config.minimal_logging.enabled = false

Contributing

  1. Fork it ( https://github.com/nelsonscott/minimal_logging/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

About

Less noisy Rails Server Log

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages