fix logging output of JSGLR
Enabling logging in JSGLR with org.spoofax.jsglr.shared.Tools.setLogging(true) currently produces the default Java object toString.
This can be fixed by changing the logger method:
package org.spoofax.jsglr.shared; public class Tools { public static void logger(Object... s) { if(logging) System.out.println(s); }
to
Submitted by Danny Groenewegen on 3 October 2012 at 15:30public static void logger(Object... s) { if (logging){ for(Object o : s){ System.out.println(o); } }
Issue Log
On 3 October 2012 at 17:26 Lennart Kats commented:
Ah, just printing an Array certainly won’t do. I would use the approach from https://svn.strategoxt.org/repos/StrategoXT/spoofax-imp/trunk/org.strategoxt.imp.runtime/src/org/strategoxt/imp/runtime/Debug.java, though.
On 8 January 2013 at 14:07 Eelco Visser tagged sglr
On 8 January 2013 at 14:07 Eelco Visser tagged sdf
On 8 January 2013 at 14:08 Eelco Visser tagged minor
Log in to post comments