plug_logger_json
plug_logger_json copied to clipboard
Elixir Plug that formats http request logs as json
Besides other documentation changes, this commit ensures the generated HTML doc for HexDocs.pm will become the main reference doc for this Elixir library which leverage on latest features of ExDoc.
This allows overriding the maximum length of parameters that are logged from the default of 500.
I haven't been able to figure out how to shut off the default non JSON error logging, so that the error is only logged in the JSON format instead of...
Phoenix now uses `Jason` by default. Would be great if there was a config and one could pass in `Phoenix.json_library()`. I'd be happy to make a PR.