File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,21 @@ defmodule Logger.Formatter do
74
74
to the current process. The user can configure the backend to choose
75
75
which metadata it wants to print and it will replace the `$metadata`
76
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.
77
92
"""
78
93
79
94
@ type date :: { 1970 .. 10000 , 1 .. 12 , 1 .. 31 }
You can’t perform that action at this time.
0 commit comments