forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r106097 - /forrest/trunk/plugins/org.apache.forrest.plugin.logs/resources/stylesheets/j2se2document.xsl
Date Sun, 21 Nov 2004 16:22:54 GMT
Author: rgardler
Date: Sun Nov 21 08:22:52 2004
New Revision: 106097

Modified:
   forrest/trunk/plugins/org.apache.forrest.plugin.logs/resources/stylesheets/j2se2document.xsl
Log:
improve message for method entry and exit

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.logs/resources/stylesheets/j2se2document.xsl
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.logs/resources/stylesheets/j2se2document.xsl
(original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.logs/resources/stylesheets/j2se2document.xsl
Sun Nov 21 08:22:52 2004
@@ -35,8 +35,18 @@
             <xsl:for-each select="log/record">
               <xsl:sort select="sequence" data-type="number" order="descending"/>
               <section>
-                <title><xsl:value-of select="level"/>: <xsl:value-of select="message"/></title>
-                <p>Logged By: <strong><xsl:value-of select="class"/>.<xsl:value-of
select="method"/>()</strong></p>
+                <xsl:choose>
+                  <xsl:when test="message='ENTRY'">
+                    <title>Entering: <xsl:value-of select="method"/>() in <xsl:value-of
select="class"/></title>
+                  </xsl:when>
+                  <xsl:when test="message='EXIT'">
+                    <title>Exiting: <xsl:value-of select="method"/>() in <xsl:value-of
select="class"/></title>
+                  </xsl:when>
+                  <xsl:otherwise>
+                    <title><xsl:value-of select="level"/>: <xsl:value-of select="message"/></title>
+                    <p>Logged By: <strong><xsl:value-of select="class"/>.<xsl:value-of
select="method"/>()</strong></p>
+                  </xsl:otherwise>
+                </xsl:choose>
                 <p>Logged At: <strong> <xsl:value-of select="date"/> (<xsl:value-of
select="millis"/>)</strong></p>
               </section>
             </xsl:for-each>

Mime
View raw message