APISonar


org.tanukisoftware.wrapper.WrapperManager.log

> org > tanukisoftware > wrapper > WrapperManager > log
org APIs tanukisoftware APIs wrapper APIs WrapperManager APIs log APIs

Example 1
public void logMessage(int logLevel, String msg, Throwable err) {
        StringBuffer buf  = new StringBuffer();
        buf.append(msg);
        if (err != null) {
           buf.append("\n");
           StringWriter writer = new StringWriter();
           PrintWriter printWriter = new PrintWriter(writer);
           err.printStackTrace(printWriter);
           printWriter.flush();
           buf.append(writer.toString());
        }
        WrapperManager.log(logLevel, buf.toString());
    }