Skip to content

Commit 4c7e723

Browse files
authored
Fix Logger.put_process_level/2 note (#13959)
The documentation for this function stated that it would override primary logger level, which is not true.
1 parent 0a69416 commit 4c7e723

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/logger/lib/logger.ex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -800,8 +800,9 @@ defmodule Logger do
800800
801801
Currently the only accepted PID is `self()`.
802802
803-
This will take priority over the primary level set, so it can be
804-
used to increase or decrease verbosity of some parts of the running system.
803+
Different from `put_module_level/2`, the process level doesn't take priority
804+
over the global level, but instead works alongside it. Effectively, the higher
805+
logger level is used.
805806
"""
806807
@doc since: "1.15.0"
807808
@spec put_process_level(pid(), level() | :all | :none) :: :ok

0 commit comments

Comments
 (0)