Skip to content

Commit 947b72e

Browse files
committed
Clarify log levels
1 parent 67e96e3 commit 947b72e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/logger_backends.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@ defmodule LoggerBackends do
152152
Check the `LoggerBackends.Console` implementation in Elixir's codebase
153153
for examples on how to handle the recommendations in this section and
154154
how to process the existing options.
155+
156+
## Levels
157+
158+
For backwards compatibility purposes, a Logger Backend receives only `:debug`,
159+
`:info`, `:warn`, and `:error` as log levels. In particular, notice you will
160+
need to convert `:warn` to `:warning` if you plan to use the `Logger` functions.
155161
"""
156162

157163
@typedoc """

0 commit comments

Comments
 (0)