[erlang-questions] Erlang/OTP 21.0-rc1 (Release Candidate)

Svilen Ivanov isvilen@REDACTED
Thu May 3 12:48:03 CEST 2018


In Kernel User's Guide new logger API chapter 
"2.6 Example: implement a handler"
callback function 'removing_handler' is documented to accept single
parameter logger:handler_id(),
but in the example for handler that prints to file it takes two
parameters (Id and Config).

The current implementation seems to call this function with single
parameter HandlerId, but that makes not possible to cleanly close the
file descriptor as shown in the example.

So, removing_handler/1 or removing_handler/2 ?

BR, Svilen




More information about the erlang-questions mailing list