microscope v0.4.0 Microscope.Logger

A callback module that logs HTTP requests to the stdout.

Summary

Functions

Called when the server replied with HTTP 200 (OK)

Called when the server replied with HTTP 404 (Not Found)

Called when the server received a request, and before the server sends a response

Functions

on_200(from, method, path)
on_200(String.t, String.t, String.t) :: no_return

Called when the server replied with HTTP 200 (OK).

Callback implementation for Microscope.Callback.on_200/3.

on_404(from, method, path)
on_404(String.t, String.t, String.t) :: no_return

Called when the server replied with HTTP 404 (Not Found).

Callback implementation for Microscope.Callback.on_404/3.

on_request()
on_request() :: no_return

Called when the server received a request, and before the server sends a response.

Callback implementation for Microscope.Callback.on_request/0.