APISonar


org.apache.catalina.Logger.log

> org > apache > catalina > Logger > log
org APIs apache APIs catalina APIs Logger APIs log APIs

Example 1
protected void log(String message) {
        message = neutralizeForLog(message);
        Logger logger = container.getLogger();
        if (logger != null) {
            logger.log(this.toString() + ": " + message);
        } else {
            if (log.isLoggable(Level.INFO)) {
                log.log(Level.INFO, this.toString() + ": " + message);
            }
        }
    }
Example 2
public void log(String message, Throwable throwable) {
        Logger logger = context.getLogger();
        if (logger != null)
            logger.log(context.logName() + message, throwable);
    }