Hi,
By the way, we have a scathing discussion going on the commons-dev mailing list 
regarding possible refactoring of commons-logging to an IoC-type implementation.  
Those interested might want to follow on commons-dev or one of the public list 
archives: http://marc.theaimsgroup.com/?t=108425990500003&r=1&w=2.

Yoav Shapira
Millennium Research Informatics

-----Original Message-----
From: Sikha, Naresh [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 11, 2004 8:29 PM
To: 'Log4J Developers List'
Subject: RE: Using latest Log4J and Jakarta Commons Logging

Thanks.
�
FYI, I was able to make Struts 1.1 and latest Chainsaw play fair by adding the 
following method to org.apache.log4j.Category:
�
public void log(
� String callerFQCN, Priority level, Object message, Throwable t) {
� if (repository.isDisabled(level.level)) {
��� return;
� }

� if (level.isGreaterOrEqual(this.getEffectiveLevel())) {
��� forcedLog(callerFQCN, Level.toLevel(level.level), message, t);
� }
}
�
�
Naresh Sikha�
-----Original Message-----
From: Paul Smith [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 11, 2004 5:22 PM
To: 'Log4J Developers List'
Subject: RE: Using latest Log4J and Jakarta Commons Logging
Actually gump has already picked up some things regarding the latest log4j and 
commons-logging, and we are already looking into it.� You might want to build from cvs 
from about a week ago until this has been resolved.
�
cheers,
�
Paul Smith
-----Original Message-----
From: Sikha, Naresh [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 12 May 2004 10:18 AM
To: '[EMAIL PROTECTED]'
Subject: Using latest Log4J and Jakarta Commons Logging
Hi,
I'm using Log4J and Jakarta Commons Logging (nothing I can do about it - its bundled 
with Struts) and I am getting the following error:
java.lang.NoSuchMethodError: org.apache.log4j.Logger: method 
log(Ljava/lang/String;Lorg/apache/log4j/Priority;Ljava/lang/Object;Ljava/lang/Throwable;)V
 not found
��� at org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:192)
��� at 
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResourcesFactory.java:197)
��� at 
org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:576)
��� at org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:1329)
��� at org.apache.struts.action.ActionServlet.init(ActionServlet.java:464)
I believe I should file a bug but I thout I would inquire first. Thanks.
-Naresh



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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

Reply via email to