Class: Pakyow::Logger::Formatters::JSON Private

Inherits:
Pakyow::Logger::Formatter show all
Defined in:
lib/pakyow/logger/formatters/json.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Formats log messages as json.

Examples:

{"severity":"info","timestamp":"2016-06-20 10:07:30 -0500","id":"c8af6a8b","type":"http","elapsed":"0.01ms","method":"GET","path":"/","ip":"127.0.0.1"}
{"severity":"info","timestamp":"2016-06-20 10:07:30 -0500","id":"c8af6a8b","type":"http","elapsed":"1.24ms","message":"hello 2016-06-20 10:07:30 -0500"}
{"severity":"info","timestamp":"2016-06-20 10:07:30 -0500","id":"c8af6a8b","type":"http","elapsed":"3.08ms","status":200}

Direct Known Subclasses

Logfmt

Instance Attribute Summary

Attributes inherited from Pakyow::Logger::Formatter

#output

Method Summary

Methods inherited from Pakyow::Logger::Formatter

#call, #initialize, #verbose!

Constructor Details

This class inherits a constructor from Pakyow::Logger::Formatter