I have a deployed Phoenix LiveView App.
When I start it with a shell, I see output like this:
10:43:25.306 request_id=F_xtup9AcaphOX8AAEvB [info] GET /some-page/
10:43:25.312 request_id=F_xtup9AcaphOX8AAEvB [info] Sent 200 in 6ms
10:46:14.756 [info] CONNECTED TO Phoenix.LiveView.Socket in 42µs
Transport: :websocket
Serializer: Phoenix.Socket.V2.JSONSerializer
Parameters: %{“_csrf_token” => “…”, “_live_referer” => “undefined”, “_mounts” => “0”, “_track_static” => %{“0” => “https://webpage.com/assets/app-777.css?vsn=d”, “1” => “https://webpage.com/assets/6665.js?vsn=d”}, “vsn” => “2.0.0”}
How to configure (turn off) this messages?
Is there a drawback when I turn these off? Do I miss some important stuff?
Can the debug levels be tweaked in the shell at runtime?
Thanks. That looks nice.
What is a good way to make the log_level runtime configurable?
I’d like to switch e.g. from :info to false. Therefore I need some state for the log_level function.
Exactly - I experimented with the :info, :warning settings.
I changed it to :debug. That way they should not be longer printed in the deployed version.