A map of configured log paths and functions.
Summary
Functions
Creates a map assigning each configured log path to its log level.
Resets the configured log files of the given levels.
Types
@type t() :: %{required(:logger.level()) => Path.t()}
A map assigning configured log paths to their log levels
Functions
@spec new() :: t()
Creates a map assigning each configured log path to its log level.
@spec reset_logs(t(), Log.Reset.levels()) :: :ok
Resets the configured log files of the given levels.
Examples
iex> alias Log.Reset.LogPaths
iex> LogPaths.reset_logs(%{}, :all) # No handlers configured?
:ok
iex> alias Log.Reset.LogPaths
iex> LogPaths.reset_logs(%{}, [:info, :error]) # No handlers either?
:ok