A JSON logger with Rails support.
Read below to get started, or see the API Documentation for more details.
Add this line to your application's Gemfile
:
gem 'epilog'
This logger is compatible with the native Ruby Logger interface. To use it, just
create an instance of Epilog::Logger
.
logger = Epilog::Logger.new($stdout)
To use Epilog with Rails, simply override the Rails default logger with an
Epilog logger. Do this in your application.rb
or <environment>.rb
.
config.logger = Epilog::Logger.new($stdout)
config.logger.progname = 'epilog'
config.log_level = :debug
You can run bin/console
for an interactive prompt that will allow you to
experiment.
Bug reports and pull requests are welcome on GitHub at https://github.com/nullscreen/epilog.