View Source Log.Reset.LogPaths (Log Reset v0.1.60)
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
# The parent app may not configure any file handlers...
iex> LogPaths.reset_logs([], :all)
:ok
iex> alias Log.Reset.LogPaths
iex> LogPaths.reset_logs([], [:info, :error])
:ok