March 2018
Intermediate to advanced
244 pages
6h 10m
English
SASLs, or System Architecture Support Libraries, ship as part of Erlang/OTP, providing detailed progress and crash reports. They extend Erlang and Elixir loggers to provide detailed reports from supervisors. We can enable it either with a command-line flag or a configuration option.
You can start Elixir or IEx with SASL enabled by passing the --logger-sasl-reports true flag. Create a new application to try it out:
| | $ mix new sasl_sample |
Start it in an IEx session with the SASL reports flag enabled, like this:
| | $ iex --logger-sasl-reports true -S mix |
| | |
| | 00:10:51.385 [info] Child Logger.ErrorHandler of |
| | Supervisor Logger.Supervisor started |
| | Pid: #PID<0.79.0> |
| | Start Call: Logger.Watcher.start_link({:error_logger, ... |
Read now
Unlock full access