com.plantuml.api.cheerpj.WasmLog Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml-mit Show documentation
Show all versions of plantuml-mit Show documentation
PlantUML is a component that allows to quickly write diagrams from text.
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package com.plantuml.api.cheerpj;
import net.sourceforge.plantuml.utils.Log;
//::revert when __CORE__
//import com.leaningtech.client.Document;
//import com.leaningtech.client.Element;
//import com.leaningtech.client.Global;
public class WasmLog {
public static long start;
public static void log(String message) {
// ::revert when __CORE__
Log.info(message);
// try {
// if (start > 0) {
// final long duration = System.currentTimeMillis() - start;
// message = "(" + duration + " ms) " + message;
// }
// System.err.print(message);
// if (StaticMemory.elementIdDebugJava == null)
// return;
// final Document document = Global.document;
// if (document == null)
// return;
// final Element messageJava = document.getElementById(Global.JSString(StaticMemory.elementIdDebugJava));
// if (messageJava == null)
// return;
// messageJava.set_textContent(Global.JSString(message));
// } catch (Throwable t) {
// System.err.print("Error " + t);
// t.printStackTrace();
// }
}
}