fluent-plugin-stdout-pp
A fluentd plugin to pretty print json with color to stdout
Installation
Add this line to your application's Gemfile:
gem 'fluent-plugin-stdout-pp'
And then execute:
$ bundle
Or install it yourself as:
$ gem install fluent-plugin-stdout-pp
Configuration
<match **>
type stdout_pp
time_color blue
tag_color yellow
</match>
Parameters
parameter | description | default |
---|---|---|
pp | prety print json or not | true |
time_color | color name to print time | blue |
tag_color | color name to print tag | yellow |
record_colored | print json with color or not | true |
Available colors:
- normal
- red
- green
- yellow
- magenta
- white
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Copyright
Author | Masahiro Sano |
Copyright | Copyright (c) 2013- Masahiro Sano |
License | MIT License |