class

Halite::Logging::Common

Inherits Halite::Logging::Abstract / Reference / Object

Common logging format

Instance variables to check Halite::Logging::Abstract

Halite.use("logging", logging: Halite::Logging::Common.new(skip_request_body: true))
  .get("http://httpbin.org/get")

# Or
Halite.logging(format: "common", skip_request_body: true)
  .get("http://httpbin.org/get")

# => 2018-08-31 16:56:12 +08:00 | request  | GET    | http://httpbin.org/get
# => 2018-08-31 16:56:13 +08:00 | response | 200    | http://httpbin.org/get | 1.08s | application/json

Instance methods

request(request)
Source
response(response)
Source