[jboss-cvs] jboss-seam/doc/reference/en/modules ...
Gavin King
gavin.king at jboss.com
Wed Feb 28 15:09:21 EST 2007
User: gavin
Date: 07/02/28 15:09:21
Modified: doc/reference/en/modules concepts.xml
Log:
update
Revision Changes Path
1.53 +14 -2 jboss-seam/doc/reference/en/modules/concepts.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: concepts.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/doc/reference/en/modules/concepts.xml,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -b -r1.52 -r1.53
--- concepts.xml 27 Feb 2007 06:22:55 -0000 1.52
+++ concepts.xml 28 Feb 2007 20:09:21 -0000 1.53
@@ -963,8 +963,7 @@
</para>
<para>
- Seam provides a logging API built on top of Apache commons-logging that simplifies this code
- significantly:
+ Seam provides a logging API that simplifies this code significantly:
</para>
<programlisting><![CDATA[@Logger private Log log;
@@ -986,6 +985,14 @@
the <literal>Log</literal> into.
</para>
+ <!-- Lets not document this now, cos we should migrate to use the printf format
+ <para>
+ You can use <literal>java.text.MessageFormat</literal> formatted strings:
+ </para>
+
+ <programlisting><![CDATA[log.debug("The time is {0,time}", new Date());]]></programlisting>
+ -->
+
<para>
If <literal>User</literal> and <literal>Product</literal> are Seam components available in the current
contexts, it gets even better:
@@ -998,6 +1005,11 @@
return new Order(user, product, quantity);
}]]></programlisting>
+ <para>
+ Seam logging automagically chooses whether to send output to log4j or JDK logging. If log4j is in the
+ classpath, Seam with use it. If it is not, Seam will use JDK logging.
+ </para>
+
</sect1>
<sect1>
More information about the jboss-cvs-commits
mailing list