When we use `Logger.flush/0` it makes this logger crash because there is no `handle_event/2` for `:flush`. As described in the [Logger docs](http://elixir-lang.org/docs/stable/logger/Logger.html): > In the case of the event `:flush` handlers should flush any pending data. This event is triggered by `flush/0`.