Hi,

Elixir 1.11 will enable Logger put information of a struct. However, pid, 
ref and so on are except.

Of course, I know this can be avoided by implementing String.Chars 
protocol, 
like https://devbrett.com/2018/08/implement-string-protocol-elixir-pid.html

Why don't pid and ref have a definition of default String.Chars protocol? 
Or, I think Logger should be able to put information even in case of pid or 
ref, that is, even in case that String.Chars protocol for it isn't defined.

Especially, when we develop industrial IoTs using Nerves, logging pid or 
ref is often used. Thus, the lack of the function that I proposed makes 
programmers be troubled with the issue.

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/75b4a7a9-3395-4ebf-b4bf-5565dde0b369%40googlegroups.com.

Reply via email to