Class: Pronto::Formatter::JsonFormatter
- Inherits:
-
Object
- Object
- Pronto::Formatter::JsonFormatter
- Defined in:
- lib/pronto/formatter/json_formatter.rb
Instance Method Summary collapse
Instance Method Details
#format(messages) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/pronto/formatter/json_formatter.rb', line 6 def format() .map do || { path: .path, line: .line.new_lineno, level: .level[0].upcase, message: .msg } end.to_json end |