APISonar


org.ballerinalang.util.program.BLangVMUtils.log

> org > ballerinalang > util > program > BLangVMUtils > log
org APIs ballerinalang APIs util APIs program APIs BLangVMUtils APIs log APIs

Example 1
private void printError(String workerName, BStruct error) {
        BLangVMUtils.log("error in worker - " + workerName + System.lineSeparator()
                + BLangVMErrors.getPrintableStackTrace(error));
    }
Example 2
protected void handleAlreadyFulfilled(WorkerSignal signal) {
        WorkerExecutionContext sourceCtx = signal.getSourceContext();
        BLangVMUtils.log("error: worker '" + sourceCtx.workerInfo.getWorkerName() + 
                "' trying to return on already returned callable '" + 
                signal.getSourceContext().callableUnitInfo.getName() + "'.");
    }