heybuddy
I’m trying to get all the logger logs for my project output in a particular json format. So far, I have added a custom formatter to the console log handler, and that has worked great for all my logs except for the SASL reports (the ones that start with “===Supervisor Report==” or similar) which are still coming out unformatted.
I’ve already added the following to my logger config, with no change to the results:
config :logger
handle_otp_reports: true,
handle_sasl_reports: true
I am using Distillery to create the release that I am running, which may be related. I do not see the SASL logs at all when I run via mix. There is also this nugget in the logger docs:
“Your application must guarantee :sasl is started before :logger”
This could certainly also be the problem, but I am not explicitly running the sasl app at all. Is sasl launched by Distillery, and if so, how can I guarantee that it starts before Logger?
Trending in Questions
Other Trending Topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #ai
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #elixirconf-eu
- #metaprogramming
- #hex









