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

Print this page

        

*** 69,79 **** * For a custom handler, e.g. com.foo.MyHandler, the properties would be: * <ul> * <li> com.foo.MyHandler.level=INFO </li> * <li> com.foo.MyHandler.formatter=java.util.logging.SimpleFormatter </li> * </ul> ! * <p> * @since 1.4 */ public class StreamHandler extends Handler { private OutputStream output; --- 69,79 ---- * For a custom handler, e.g. com.foo.MyHandler, the properties would be: * <ul> * <li> com.foo.MyHandler.level=INFO </li> * <li> com.foo.MyHandler.formatter=java.util.logging.SimpleFormatter </li> * </ul> ! * * @since 1.4 */ public class StreamHandler extends Handler { private OutputStream output;
*** 89,99 **** } /** * Create a <tt>StreamHandler</tt> with a given <tt>Formatter</tt> * and output stream. ! * <p> * @param out the target output stream * @param formatter Formatter to be used to format output */ public StreamHandler(OutputStream out, Formatter formatter) { // configure with default level but use specified formatter --- 89,99 ---- } /** * Create a <tt>StreamHandler</tt> with a given <tt>Formatter</tt> * and output stream. ! * * @param out the target output stream * @param formatter Formatter to be used to format output */ public StreamHandler(OutputStream out, Formatter formatter) { // configure with default level but use specified formatter
*** 222,232 **** * Check if this <tt>Handler</tt> would actually log a given <tt>LogRecord</tt>. * <p> * This method checks if the <tt>LogRecord</tt> has an appropriate level and * whether it satisfies any <tt>Filter</tt>. It will also return false if * no output stream has been assigned yet or the LogRecord is null. ! * <p> * @param record a <tt>LogRecord</tt> * @return true if the <tt>LogRecord</tt> would be logged. * */ @Override --- 222,232 ---- * Check if this <tt>Handler</tt> would actually log a given <tt>LogRecord</tt>. * <p> * This method checks if the <tt>LogRecord</tt> has an appropriate level and * whether it satisfies any <tt>Filter</tt>. It will also return false if * no output stream has been assigned yet or the LogRecord is null. ! * * @param record a <tt>LogRecord</tt> * @return true if the <tt>LogRecord</tt> would be logged. * */ @Override