error-tracker icon indicating copy to clipboard operation
error-tracker copied to clipboard

Configure default log level

Open crbelaus opened this issue 1 year ago • 1 comments

In certain cases the ErrorTracker logs may pollute the application logs and make it harder to find the actual problem. It would be interesting to allow users configure the log level.

For example Oban allows the following configuration:

# config/config.exs
config :my_app, Oban,
  engine: Oban.Engines.Lite,
  queues: [default: 10],
  repo: MyApp.Repo,
  log: false | Logger.level()

Setting a logger level would make the ErrorTracker log everything at that level (for example :debug). Setting it to false would disable the ErrorTracker logging altogether.

crbelaus avatar Sep 08 '24 10:09 crbelaus

Hey! I'd like to help implement this, any idea on where to start ?, also the ecto repo uses the logger and logs queries executed, should we attempt to also suppress those logs if log: false was set ?

MSE99 avatar Sep 08 '24 17:09 MSE99

We are not going to pursue this at the moment, so I am closing this issue.

crbelaus avatar Nov 13 '24 17:11 crbelaus