We configure the plug as plug Logster.Plugs.Logger, excludes: [:params], log: :info to set all logs to the info level but this does not work as the pattern match check assumes that there is only one option:
|
defp log_level(_, log: log_level), do: log_level |
This is because keyword lists cannot be partial matched as you can with maps.
We configure the plug as
plug Logster.Plugs.Logger, excludes: [:params], log: :infoto set all logs to the info level but this does not work as the pattern match check assumes that there is only one option:logster/lib/logster/plugs/logger.ex
Line 153 in ff5b600
This is because keyword lists cannot be partial matched as you can with maps.