Class: GrapeLogging::Formatters::Json
- Inherits:
-
Object
- Object
- GrapeLogging::Formatters::Json
- Defined in:
- lib/grape_logging/formatters/json.rb
Instance Method Summary collapse
Instance Method Details
#call(severity, datetime, _, data) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/grape_logging/formatters/json.rb', line 4 def call(severity, datetime, _, data) { date: datetime, severity: severity, data: format(data) }.to_json + "\n" end |