 
   Currently the only accepted process is self().
   """
+  @spec disable(pid) :: :ok
   def disable(pid) when pid == self() do
     Process.put(@metadata, {false, metadata()})
     :ok

      the backend is added

  """
  def add_backend(backend, opts \\ []) do
    _ = if opts[:flush], do: flush()
    case Logger.Watcher.watch(Logger, Logger.Config.translate_backend(backend), backend) do

  @doc """
  Resets the current process metadata to the given keyword list.
  """
  @spec reset_metadata(metadata) :: :ok
  def reset_metadata(keywords \\ []) do
    {enabled?, _metadata} = __metadata__()
    Process.put(@metadata, {enabled?, []})
