import org.simantics.scl.runtime.SCLContext;
import org.simantics.scl.runtime.function.Function;
import org.simantics.scl.runtime.tuple.Tuple0;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
/**
* Static methods for calling the currently active {@link SCLReportingHandler}.
*/
public class SCLReporting {
+ private static final Logger LOGGER = LoggerFactory.getLogger(SCLReporting.class);
+
public static void print(String text) {
SCLReportingHandler handler = ((SCLReportingHandler)SCLContext.getCurrent().get(SCLReportingHandler.REPORTING_HANDLER));
if(handler != null)
if(handler != null)
handler.printError(text);
else
- System.err.println(text);
+ LOGGER.error(text);
}
public static void didWork(double amount) {