Sha256: 8a5058dfcefbeb5ad17db767d48dc6ff19a00515e6bda1618ee847f196929431

Contents?: true

Size: 1.14 KB

Versions: 1

Compression:

Stored size: 1.14 KB

Contents

# LogOnelineFormatter

This gem is a very simple remove line end from multi line log for Rails.
Such as ActiveRecord::RecordNotFound, Routing Error and more.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'log_oneline_formatter'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install log_oneline_formatter

## Usage

in application.rb or other
```
config.logger = Logger.new "#{Rails.root.join('log', Rails.env)}.log"
config.log_formatter = LogOnelineFormatter::Formatter.new(::Logger::Formatter)
```

## Development

```
rails new sample
cd sample
git clone https://github.com/gendosu/log_oneline_formatter
echo "gemspec path: 'log_oneline_formatter'" > Gemfile
```

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/gendosu/log_oneline_formatter. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.


## License

The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
log_oneline_formatter-0.0.1 README.md