elixir-lang/elixir — pull request #329 by yrashk (2012-06-03 01:41:05+00:00)
Title: Fixes the problem with skewed error logger's output in IEx

Before this patch:

```erlang
iex> :application.start :sasl

=PROGRESS REPORT==== 2-Jun-2012::18:05:48 ===
supervisor: {local,sasl_safe_sup}
started: [{pid,<0.41.0>},
{name,alarm_handler},
{mfargs,{alarm_handler,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]

=PROGRESS REPORT==== 2-Jun-2012::18:05:48 ===
supervisor: {local,sasl_safe_sup}
started: [{pid,<0.42.0>},
{name,overload},
{mfargs,{overload,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]

=PROGRESS REPORT==== 2-Jun-2012::18:05:48 ===
supervisor: {local,sasl_sup}
started: [{pid,<0.40.0>},
{name,sasl_safe_sup},
{mfargs,
{supervisor,start_link,
[{local,sasl_safe_sup},sasl,safe]}},
{restart_type,permanent},
{shutdown,infinity},
{child_type,supervisor}]
:ok
=PROGRESS REPORT==== 2-Jun-2012::18:05:48 ===
supervisor: {local,sasl_sup}
started: [{pid,<0.43.0>},
{name,release_handler},
{mfargs,{release_handler,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]

iex>
=PROGRESS REPORT==== 2-Jun-2012::18:05:48 ===
application: sasl
started_at: nonode@nohost
```

After this patch:

```erlang
iex> :application.start(:sasl)

=PROGRESS REPORT==== 2-Jun-2012::18:39:03 ===
supervisor: {local,sasl_safe_sup}
started: [{pid,<0.42.0>},
{name,alarm_handler},
{mfargs,{alarm_handler,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
:ok
iex>
=PROGRESS REPORT==== 2-Jun-2012::18:39:03 ===
supervisor: {local,sasl_safe_sup}
started: [{pid,<0.43.0>},
{name,overload},
{mfargs,{overload,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]

=PROGRESS REPORT==== 2-Jun-2012::18:39:03 ===
supervisor: {local,sasl_sup}
started: [{pid,<0.41.0>},
{name,sasl_safe_sup},
{mfargs,
{supervisor,start_link,
[{local,sasl_safe_sup},sasl,safe]}},
{restart_type,permanent},
{shutdown,infinity},
{child_type,supervisor}]

=PROGRESS REPORT==== 2-Jun-2012::18:39:03 ===
supervisor: {local,sasl_sup}
started: [{pid,<0.44.0>},
{name,release_handler},
{mfargs,{release_handler,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]

=PROGRESS REPORT==== 2-Jun-2012::18:39:03 ===
application: sasl
started_at: nonode@nohost

```