You're seeing just the function init, go back to LoggerJSON.Plug module for more information.

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 with build_metadata/3 function that formats the metadata before it's sent to logger, default - LoggerJSON.Plug.MetadataFormatters.GoogleCloudLogger.

Available metadata formatters