https://github.com/nullscreen/epilog
A JSON logger with Rails support
https://github.com/nullscreen/epilog
json logger rails ruby
Last synced: 10 months ago
JSON representation
A JSON logger with Rails support
- Host: GitHub
- URL: https://github.com/nullscreen/epilog
- Owner: nullscreen
- License: mit
- Created: 2018-12-18T20:22:09.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2022-09-10T05:17:48.000Z (over 3 years ago)
- Last Synced: 2025-03-30T12:33:48.112Z (11 months ago)
- Topics: json, logger, rails, ruby
- Language: Ruby
- Size: 127 KB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Epilog Gem
[](https://badge.fury.io/rb/epilog)
[](https://github.com/nullscreen/epilog/actions?query=workflow%3ACI+branch%main)
[](https://www.codacy.com/gh/nullscreen/epilog/dashboard)
[](https://codecov.io/gh/nullscreen/epilog)
A JSON logger with Rails support.
## Documentation
Read below to get started, or see the [API Documentation][api-docs] for more
details.
[api-docs]: https://www.rubydoc.info/github/nullscreen/epilog
## Installation
Add this line to your application's `Gemfile`:
```ruby
gem 'epilog'
```
## Basic Usage
This logger is compatible with the native Ruby Logger interface. To use it, just
create an instance of `Epilog::Logger`.
```ruby
logger = Epilog::Logger.new($stdout)
```
## Rails Support
To use Epilog with Rails, simply override the Rails default logger with an
Epilog logger. Do this in your `application.rb` or `.rb`.
```ruby
config.logger = Epilog::Logger.new($stdout)
config.logger.progname = 'epilog'
config.log_level = :debug
```
## Development
You can run `bin/console` for an interactive prompt that will allow you to
experiment.
## Contributing
Bug reports and pull requests are welcome on GitHub at
https://github.com/nullscreen/epilog.