src/share/classes/java/util/logging/Handler.java

Print this page

        

*** 156,166 **** * Set a <tt>Formatter</tt>. This <tt>Formatter</tt> will be used * to format <tt>LogRecords</tt> for this <tt>Handler</tt>. * <p> * Some <tt>Handlers</tt> may not use <tt>Formatters</tt>, in * which case the <tt>Formatter</tt> will be remembered, but not used. ! * <p> * @param newFormatter the <tt>Formatter</tt> to use (may not be null) * @exception SecurityException if a security manager exists and if * the caller does not have <tt>LoggingPermission("control")</tt>. */ public synchronized void setFormatter(Formatter newFormatter) throws SecurityException { --- 156,166 ---- * Set a <tt>Formatter</tt>. This <tt>Formatter</tt> will be used * to format <tt>LogRecords</tt> for this <tt>Handler</tt>. * <p> * Some <tt>Handlers</tt> may not use <tt>Formatters</tt>, in * which case the <tt>Formatter</tt> will be remembered, but not used. ! * * @param newFormatter the <tt>Formatter</tt> to use (may not be null) * @exception SecurityException if a security manager exists and if * the caller does not have <tt>LoggingPermission("control")</tt>. */ public synchronized void setFormatter(Formatter newFormatter) throws SecurityException {
*** 327,337 **** * This method checks if the <tt>LogRecord</tt> has an appropriate * <tt>Level</tt> and whether it satisfies any <tt>Filter</tt>. It also * may make other <tt>Handler</tt> specific checks that might prevent a * handler from logging the <tt>LogRecord</tt>. It will return false if * the <tt>LogRecord</tt> is null. ! * <p> * @param record a <tt>LogRecord</tt> * @return true if the <tt>LogRecord</tt> would be logged. * */ public boolean isLoggable(LogRecord record) { --- 327,337 ---- * This method checks if the <tt>LogRecord</tt> has an appropriate * <tt>Level</tt> and whether it satisfies any <tt>Filter</tt>. It also * may make other <tt>Handler</tt> specific checks that might prevent a * handler from logging the <tt>LogRecord</tt>. It will return false if * the <tt>LogRecord</tt> is null. ! * * @param record a <tt>LogRecord</tt> * @return true if the <tt>LogRecord</tt> would be logged. * */ public boolean isLoggable(LogRecord record) {