belaustegui
Pretty printing Phoenix request parameters
By default, the Phoenix.Logger prints some useful information about each received request.
Turns out that (at least in development) the color and the log format is not very legible and difficult to find among other log entires.
I was wondering if there is a way to customize how this information is displayed, or if the Phoenix team would be open to a proposition to update it.
This is a screenshot I’ve took that shows what I mean.
First Post!
NobbZ
I can’t really read anything on the screenshot.
But what I can see is, that it seems that there are some pretty printed single value spanning many lines.
From the point of aggregating logs via ELK or similar, I really do not like spanning single log entries over more than a single line.
If though you really want that, you can provide a custom formatter that does this for you as you want it.
edit
The screenshot has been updated splitseconds after I submitted the post. Its now better readable, but doesn’t really change my thinking about the problem at hand.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









