View Source LoggerJSON.Plug (logger_json v5.1.3)
A Plug to log request information in JSON format.
Summary
Functions
Initializes the Plug.
Functions
Initializes the Plug.
Available options
:log- log level which is used to log requests;:version_header- request header which is used to determine API version requested by client, default:x-api-version;:metadata_formatter- module withbuild_metadata/3function that formats the metadata before it's sent to logger, default -LoggerJSON.Plug.MetadataFormatters.GoogleCloudLogger.
Available metadata formatters
LoggerJSON.Plug.MetadataFormatters.DatadogLoggersee module for logged structure;LoggerJSON.Plug.MetadataFormatters.GoogleCloudLoggerleverages GCP LogEntry format;LoggerJSON.Plug.MetadataFormatters.ELKsee module for logged structure.