@Override public void log(String msg) { if (SecurityUtil.isPackageProtectionEnabled()) { doPrivileged("log", new Object[] {msg}); } else { context.log(msg); } }
@Override public void log(String message, Throwable throwable) { if (SecurityUtil.isPackageProtectionEnabled()) { doPrivileged( "log", new Class[] {String.class, Throwable.class}, new Object[] {message, throwable}); } else { context.log(message, throwable); } }
/** @deprecated As of Java Servlet API 2.1, use <code>log(String, Throwable)</code> instead */ @Override @Deprecated public void log(Exception exception, String msg) { if (SecurityUtil.isPackageProtectionEnabled()) { doPrivileged( "log", new Class[] {Exception.class, String.class}, new Object[] {exception, msg}); } else { context.log(exception, msg); } }