Skip to content

Commit

Permalink
Clarify log levels
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Jul 7, 2023
1 parent 67e96e3 commit 947b72e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/logger_backends.ex
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@ defmodule LoggerBackends do
Check the `LoggerBackends.Console` implementation in Elixir's codebase
for examples on how to handle the recommendations in this section and
how to process the existing options.
## Levels
For backwards compatibility purposes, a Logger Backend receives only `:debug`,
`:info`, `:warn`, and `:error` as log levels. In particular, notice you will
need to convert `:warn` to `:warning` if you plan to use the `Logger` functions.
"""

@typedoc """
Expand Down

0 comments on commit 947b72e

Please sign in to comment.