Log.Reset (Log Reset v0.1.40) View Source
Resets configured log files.
Link to this section Summary
Functions
Returns the "log paths" server state.
Refreshes and returns the "log paths" server state.
Resets the configured log files of the given levels
.
Link to this section Types
Specs
levels() :: [Logger.level()] | :all | :none
Log level
Link to this section Functions
Specs
log_paths() :: Log.Reset.LogPaths.t()
Returns the "log paths" server state.
Examples
iex> alias Log.Reset
iex> Reset.log_paths() |> is_map()
true
Specs
refresh() :: Log.Reset.LogPaths.t()
Refreshes and returns the "log paths" server state.
Examples
iex> alias Log.Reset
iex> Reset.refresh() |> is_map()
true
Specs
reset_logs(levels()) :: :ok
Resets the configured log files of the given levels
.
Examples
iex> alias Log.Reset
iex> # Reset ignored if level not configured...
iex> Reset.reset_logs([:alert, :critical, :warn])
:ok