We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02a1f07 commit db72cddCopy full SHA for db72cdd
lib/logger/lib/logger/formatter.ex
@@ -74,6 +74,21 @@ defmodule Logger.Formatter do
74
to the current process. The user can configure the backend to choose
75
which metadata it wants to print and it will replace the `$metadata`
76
value.
77
+
78
+ > #### When is user metadata printed? {: .warning}
79
+ >
80
+ > User's metadata must meet one of the following conditions to be printed:
81
82
+ > * Be a string (`is_binary/1`)
83
+ > * Be a number (either `is_integer/1` or `is_float/1`)
84
+ > * Be a PID
85
+ > * Be an atom
86
+ > * Be a reference
87
+ > * Be a port
88
+ > * Implement the `String.Chars` protocol
89
90
+ > If none of the conditions above are `true`, the given metadata get
91
+ > discarded.
92
"""
93
94
@type date :: {1970..10000, 1..12, 1..31}
0 commit comments