Re: [Erlang] Logging

2011-10-06 Thread Paul Davis
Its not the prettiest, but you can do this: Log(lists:flatten(io_lib:format("~p", [Val]))) On Thu, Oct 6, 2011 at 5:34 PM, Thomas Van de Velde wrote: > Hi, > > Is there a way to log from within an Erlang view? I am trying to reproduce > the unit test for the list function and am getting an erro

[Erlang] Logging

2011-10-06 Thread Thomas Van de Velde
Hi, Is there a way to log from within an Erlang view? I am trying to reproduce the unit test for the list function and am getting an error. I'd like to log the value of "Val" so I can understand the underlying data structure. I tried error_logger:info_report(Val). Thanks! Output from view: {"tot