data Bezel::LogEvent
What Bezel::Plug::Logger reports of one request.
Methods
def method -> String
The method ("GET").
def path -> String
The path, without the query (which may carry a token).
def status -> Int
The response's status (500 for an exception).
def duration -> Duration
The time from the endpoint taking the request to the response.
def request_id -> String?
The request's id, or nil.
def to_s -> String
One line: GET /users -> 200 in 1.2ms [id].
def to_h -> Hash[Symbol, Object]
The fields as a Hash, by name.
def with(*, method: String = …, path: String = …, status: Int = …, duration: Duration = …, request_id: String? = …) -> Bezel::LogEvent
A copy with the fields given replaced.