Sam Houston
Sam Houston

Reputation: 3651

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

Upvotes: 4

Views: 3251

Answers (1)

Dogbert
Dogbert

Reputation: 222040

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.

Upvotes: 14

Related Questions