User: starksm 
  Date: 01/09/11 11:41:15

  Modified:    varia/src/main/org/jboss/jdo/castor CastorJDOImpl.java
  Log:
  Convert all logging to org.jboss.logging.Logger which is a subclass of
  org.apache.log4j.Category.
  
  Revision  Changes    Path
  1.4       +4 -4      contrib/varia/src/main/org/jboss/jdo/castor/CastorJDOImpl.java
  
  Index: CastorJDOImpl.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/contrib/varia/src/main/org/jboss/jdo/castor/CastorJDOImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- CastorJDOImpl.java        2001/09/01 19:50:29     1.3
  +++ CastorJDOImpl.java        2001/09/11 18:41:15     1.4
  @@ -36,7 +36,7 @@
   import org.exolab.castor.persist.spi.LogInterceptor;
   import org.exolab.castor.xml.Unmarshaller;
   
  -import org.jboss.logging.LogWriter;
  +import org.jboss.logging.log4j.CategoryWriter;
   import org.jboss.system.ServiceMBeanSupport;
   
   import org.jboss.proxy.Proxy;
  @@ -48,7 +48,7 @@
    *   Castor JDO support
    *
    *   @author Oleg Nitz ([EMAIL PROTECTED])
  - *   @version $Revision: 1.3 $
  + *   @version $Revision: 1.4 $
    */
   public class CastorJDOImpl extends ServiceMBeanSupport
           implements DataObjects, ObjectFactory, Referenceable, Serializable,
  @@ -304,12 +304,12 @@
   
   
       public void exception(Exception except) {
  -        log.exception(except);
  +        log.error("Exception", except);
       }
   
       public PrintWriter getPrintWriter() {
           if (writer == null) {
  -            writer = new LogWriter(log);
  +            writer = new CategoryWriter(log);
           }
           return writer;
       }
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to