View Source Phoenix.LiveView.Logger (Phoenix LiveView v0.18.2)
Instrumenter to handle logging of Phoenix.LiveView
and Phoenix.LiveComponent
life-cycle events.
installation
Installation
The logger is installed automatically when Live View starts.
By default, the log level is set to :debug
.
module-configuration
Module configuration
The log level can be overriden for an individual Live View module:
use Phoenix.LiveView, log: :debug
To disable logging for an individual Live View module:
use Phoenix.LiveView, log: false
telemetry
Telemetry
The following Phoenix.LiveView
and Phoenix.LiveComponent
events are logged:
[:phoenix, :live_view, :mount, :start]
[:phoenix, :live_view, :mount, :stop]
[:phoenix, :live_view, :handle_params, :start]
[:phoenix, :live_view, :handle_params, :stop]
[:phoenix, :live_view, :handle_event, :start]
[:phoenix, :live_view, :handle_event, :stop]
[:phoenix, :live_component, :handle_event, :start]
[:phoenix, :live_component, :handle_event, :stop]
See the Telemetry guide for more information.
parameter-filtering
Parameter filtering
If enabled, Phoenix.LiveView.Logger
will filter parameters based on the configuration of Phoenix.Logger
.