Skip to content

Commit

Permalink
Merge pull request #104 from qortex/amazing_print
Browse files Browse the repository at this point in the history
Amazing print
  • Loading branch information
tilfin authored Apr 14, 2020
2 parents c75e2ed + fe3c17a commit 0bc92db
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 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 [Amazing Print](https://github.com/amazing-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
2 changes: 1 addition & 1 deletion ougai.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
spec.summary = %q{JSON logger compatible with node-bunyan or pino is capable of handling structured data easily.}
spec.description = <<-EOF
A structured logging system is capable of handling a message, custom data or an exception easily.
It has JSON formatters compatible with Bunyan or pino for Node.js and human readable formatter with Awesome Print for console.
It has JSON formatters compatible with Bunyan or pino for Node.js and human readable formatter with Amazing Print for console.
EOF
spec.homepage = "https://github.com/tilfin/ougai"
spec.license = "MIT"
Expand Down

0 comments on commit 0bc92db

Please sign in to comment.