Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Phoenix remove [debug] logging

When running a phoenix server, I am getting [debug] logs which I would like to not have (the logs in blue).

enter image description here

How can I alter my config to get rid of these

like image 658
Sam Houston Avatar asked Dec 13 '22 23:12

Sam Houston


1 Answers

You can set the log level in dev to be higher than debug which will make Logger not print any debug messages. The level just above debug is info. You can set that by adding this to config/dev.exs:

config :logger, level: :info

If you already have a config :logger line, you can just add level: :info at the end of it. You will have to restart your application for this to take effect.

like image 164
Dogbert Avatar answered Dec 23 '22 08:12

Dogbert