APISonar


org.gradle.api.logging.Logger.log

> org > gradle > api > logging > Logger > log
org APIs gradle APIs api APIs logging APIs Logger APIs log APIs

Example 1
private final Logger logger = Logging.getLogger("lancet");

    protected synchronized void write(LogLevel level, String prefix, String msg, Throwable t) {
        if (t != null) {
            logger.log(level, String.format("[%-10s] %s", prefix, msg), t);
        } else {
            logger.log(level, String.format("[%-10s] %s", prefix, msg));
        }
    }