Skip to content

Commit

Permalink
Switch from deprecated Awesome Print to newly-maintained Amazing Print
Browse files Browse the repository at this point in the history
  • Loading branch information
qortex committed Apr 10, 2020
1 parent c75e2ed commit feda8ed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ source 'https://rubygems.org'
gemspec

group :test do
gem 'awesome_print'
gem 'amazing_print'
gem 'simplecov', '< 0.18', require: false
gem 'timecop'
gem 'yard'
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Ougai

A structured logging system is capable of handling a message, structured data or an exception easily.
It has JSON formatters compatible with [Bunyan](https://github.com/trentm/node-bunyan) or [pino](https://github.com/pinojs/pino) for Node.js and
human readable formatter with [Awesome Print](https://github.com/awesome-print/awesome_print) for console.
human readable formatter with [Awesome Print](https://github.com/awesome-print/amazing_print) for console.

## Installation

Expand Down Expand Up @@ -335,10 +335,10 @@ If you use *Ougai::Formatters::Pino*, you can use command [pino](https://github.

## Use human Readable formatter for console

Add awesome_print to Gemfile and `bundle`
Add amazing_print to Gemfile and `bundle`

```ruby
gem 'awesome_print'
gem 'amazing_print'
```

Set *Ougai::Formatters::Readable* instance to `formatter` accessor
Expand Down
6 changes: 3 additions & 3 deletions lib/ougai/formatters/readable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

module Ougai
module Formatters
# A human readble formatter with awesome_print
# A human readble formatter with amazing_print
# @attr [Boolean] plain Whether log should be plain not colorized.
# @attr [Array<String, Symbol>] excluded_fields The fields excluded from all logs
class Readable < Base
Expand Down Expand Up @@ -87,9 +87,9 @@ def create_data_str(data)
end

def load_dependent
require 'awesome_print'
require 'amazing_print'
rescue LoadError
puts 'You must install the awesome_print gem to use this output.'
puts 'You must install the amazing_print gem to use this output.'
raise
end
end
Expand Down

0 comments on commit feda8ed

Please sign in to comment.