     :ok
   end
 
+  @doc false
   def handle_event({:test_started, %ExUnit.Test{} = test}, {_, opts} = state) do
     :ok = add_capture(test, opts)
     {:ok, state}

defmodule Logger.CLIFormatter do
  @moduledoc false

  use GenEvent

  def init(opts) do
    colors = Keyword.put_new(opts[:colors], :enabled, IO.ANSI.enabled?)
    captured =

    {:ok, {captured, colors: colors}}
  end

  @doc false
  def terminate(_reason, {captured, opts}) do
    :ok = add_capture(%{group_leader: nil}, opts)

