Hi, I wanted to propose a change that allows a function passed to Logger to 
also return it's associated metadata.

For example, functions passed to Logger are only allowed to return a string:

Logger.debug fn -> "my log message" end

I'm proposing:

Logger.debug fn -> {"my log message", [meta: "data"]} end

This way if people take advantage of compile time purging, any code 
generating metadata is also removed.

Is there any reason this would not be a good idea?

Thanks!

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/262fa0ad-d8ab-4d38-ac49-7f01f37a837e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to