diff --git a/Gemfile b/Gemfile index 2ad53d6..3f88e56 100644 --- a/Gemfile +++ b/Gemfile @@ -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' diff --git a/README.md b/README.md index f273ee1..e3245f9 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 diff --git a/lib/ougai/formatters/readable.rb b/lib/ougai/formatters/readable.rb index 0092253..8e90454 100644 --- a/lib/ougai/formatters/readable.rb +++ b/lib/ougai/formatters/readable.rb @@ -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] excluded_fields The fields excluded from all logs class Readable < Base @@ -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