data Bezel::LogEvent

What Bezel::Plug::Logger reports of one request.

src/plug/logger.qz:2

Methods

def method -> String

The method ("GET").

src/plug/logger.qz:4

def path -> String

The path, without the query (which may carry a token).

src/plug/logger.qz:6

def status -> Int

The response's status (500 for an exception).

src/plug/logger.qz:8

def duration -> Duration

The time from the endpoint taking the request to the response.

src/plug/logger.qz:10

def request_id -> String?

The request's id, or nil.

src/plug/logger.qz:12

def to_s -> String

One line: GET /users -> 200 in 1.2ms [id].

src/plug/logger.qz:15

def to_h -> Hash[Symbol, Object]

The fields as a Hash, by name.

src/plug/logger.qz:15

def with(*, method: String = …, path: String = …, status: Int = …, duration: Duration = …, request_id: String? = …) -> Bezel::LogEvent

A copy with the fields given replaced.

src/plug/logger.qz:15