vmassol     2003/07/13 03:05:51

  Modified:    documentation/docs/xdocs/participating
                        coding_conventions.xml
  Log:
  Removed old stuff about logging. We are now using commons-logging.
  
  Revision  Changes    Path
  1.4       +5 -7      
jakarta-cactus/documentation/docs/xdocs/participating/coding_conventions.xml
  
  Index: coding_conventions.xml
  ===================================================================
  RCS file: 
/home/cvs/jakarta-cactus/documentation/docs/xdocs/participating/coding_conventions.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- coding_conventions.xml    18 Jan 2003 00:08:33 -0000      1.3
  +++ coding_conventions.xml    13 Jul 2003 10:05:51 -0000      1.4
  @@ -240,18 +240,16 @@
   
           <p>
             Do <strong>not</strong> use <code>System.out</code> to log. Instead,
  -          use the Cactus logging classes which are a facade to Log4j. Use the
  -          name of your class as the Log4j <code>Category</code>. For
  -          example:
  +          use the <code>commons-logging</code> Logging system. For example:
           </p>
   
   <source><![CDATA[
  -private static Log logger =
  -             LogService.getInstance().getLog(MyClass.class.getName());
  +private static final Log LOGGER = 
  +    LogFactory.getLog(MyClass.class);
   
   public void someMethod()
   {
  -             logger.debug("some debug text");
  +             LOGGER.debug("some debug text");
   }
   ]]></source>
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to