glia_logger_plug v0.1.0 Glia.LoggerPlug
A plug that logs every processed HTTP request with single line that includes all necessary metadata.
Heavily inspired by (Logster)[https://github.com/navinpeiris/logster], but adapted for Logstash-centric logging.
See also Plug.Logger
.
Configuration
:level
- The log level at which this plug should log its request info. Default is:info
.:allowed_parameters
- list of request parameters which values will be logged without masking. Default is[]
.
Example
plug TransporterWeb.LoggerPlug, level: :info