svn commit: r582 - logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/html

Author: seb Date: Thu Sep 14 11:26:39 2006 New Revision: 582 Modified: logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/html/HTMLLayout.java Log: - improved javadoc Modified: logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/html/HTMLLayout.java ============================================================================== --- logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/html/HTMLLayout.java (original) +++ logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/html/HTMLLayout.java Thu Sep 14 11:26:39 2006 @@ -28,19 +28,22 @@ * The content of the table columns are specified using a conversion pattern. * See {@link ch.qos.logback.classic.PatternLayout} for documentation on the * available patterns. - * + * <p> * Note that the pattern <em>%ex</em> used to display an Exception is not the only way - * to display an Exception with this layout. - * - * An internal {@link ch.qos.logback.classic.html.IThrowableRenderer} can be called - * to render the throwable. + * to display an Exception with this layout. If you use this pattern, a table column will + * be created to display the potential Exception's stacktrace. + * <p> + * However, a better solution is available in the form of implementations of the + * {@link ch.qos.logback.classic.html.IThrowableRenderer} interface. + * These implementations can be called and assigned to HTMLLayout to manage the display + * of anything related to Exceptions. + * <p> * By default, a {@link ch.qos.logback.classic.html.DefaultThrowableRenderer} - * is assigned to the HTMLLayout. It writes the Exception on a new table row. - * - * FIXME WRITE MORE ABOUT THIS. - * - * In that case, then one must add <em>%ex</em> - * to the pattern to display Exceptions. + * is assigned to the HTMLLayout. It writes the Exception on a new table row, along + * with its stacktrace, in a easily readable manner. + * <p> + * If one wants to use the <em>&ex</em> pattern anyway, then a NOPThrowableRenderer + * can be specified in the configuration file. * <p> * A user-specified external CSS file can be linked to the html page. * In case one does not want to customize the html output, an internal CSS style @@ -59,7 +62,7 @@ * <layout class="ch.qos.logback.classic.html.HTMLLayout"> * <param name="pattern" value="%relative%thread%mdc%level%class%msg" /> * </layout> - * <throwableRenderer class="ch.qos.logback.classic.html.ThrowableRenderer" /> + * <throwableRenderer class="ch.qos.logback.classic.html.DefaultThrowableRenderer" /> * <param name="From" value="sender.email@domain.net" /> * <param name="SMTPHost" value="mail.domain.net" /> * <param name="Subject" value="LastEvent: %class - %msg" /> @@ -72,8 +75,11 @@ * </root> * </configuration> *</pre> - * - * + * <p> + * In this configuration file, the <em>throwableRenderer</em> element specifies the default + * implementation of IThrowableRenderer. It could be omitted, but is showed for educationnal + * purposes. + * <p> * @author Ceki Gülcü * @author Sébastien Pennec */
participants (1)
-
noreply.seb@qos.ch