What's the metadata that you'd want to include that can't be interpolated into the string?
-- Onorio On Friday, November 4, 2016 at 1:35:13 PM UTC-4, [email protected] wrote: > > 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/2471bf86-eb18-400e-83d0-62390f8348c3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
