View Source LoggerJSON.PlugUtils (logger_json v5.1.3)
This module contains functions that can be used across different
LoggerJSON.Plug.MetadataFormatters
implementations to provide
common functionality.
Summary
Functions
Grabs the client IP address from Plug.Conn
. First we try
to grab the client IP from the x-forwarded-for
header.
Then we fall back to the conn.remote_ip
field.