Module access_log

Source
Expand description

Provides a simple access log for the gateway.

The access logs must be enabled in the gateway configuration for this module to work:

[gateway.access_logs]
enabled = true
path = "/path/to/logs"
rotate = "daily"
mode = "blocking"

Structs§

AccessLog
A sender for the system access log.

Enums§

LogError
Error variant sent if failing to write to access log.

Functions§

send
Stores the given arbitrary bytes to the access log. The data can be generated in any format, and must be serialized as bytes before sending.