Open OTP-Maintainer opened 4 years ago
lukas
said:
On issue with doing this is that there is no way to implement flow control for such log messages. The emulator when it has to log things already has to do a very special dance for it to work. When this has been suggested in the past I've always suggested that the logging should be done by yielding back into Erlang and calling logger.
hauleth
said:
I understand that this is not easy to have this implemented fully in C, however it would be handy to have something like "gateway" that would handle messages from NIFs. This would probably require adding few functions to the {{erl_nif}} (for example to get data from process dictionary) but IMHO could improve NIFs in situations like this one.
Original reporter:
hauleth
Affected version:Not Specified
Component:Not Specified
Migrated from: https://bugs.erlang.org/browse/ERL-1149