Skip to content

Commit 0a69416

Browse files
committed
Clarify Logger formatter docs, closes #13962
1 parent 2b687fe commit 0a69416

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/logger/lib/logger/formatter.ex

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,10 @@ defmodule Logger.Formatter do
1414
format: "\n$time $metadata[$level] $message\n",
1515
metadata: [:user_id]
1616
17+
You can also use `Logger.Formatter.new/1` to create your own formatter,
18+
which can then be passed as a formatter to any [`:logger_handler`](`:logger_handler`).
1719
See `Logger.Formatter.new/1` for all configuration options.
1820
19-
You can also build your own instances of this formatter by calling
20-
`new/1` and setting at the formatter of any `:logger` handler by
21-
settings its `:formatter` key to `Logger.Formatter.new(options)`.
22-
2321
This module also provides several conveniences for those who wish
2422
to [write their custom logger formatters](https://www.erlang.org/doc/apps/kernel/logger_chapter.html#formatters).
2523

0 commit comments

Comments
 (0)