Alan,
Your enhancements sound very cool. The only concern is that Axis uses the Jakarta commons-logging API now, which we then tie in to log4j. You would have to be careful that your code is robust enough to handle the case where log4j isn't being used. -- Tom Jordahl Macromedia -----Original Message----- From: Alan Gordie [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 11:34 AM To: '[EMAIL PROTECTED]' Subject: "Easy-to-find" log file...was RE: cvs commit: xml-axis/java/sampl es/stock GetQuote.java Someone may have already suggested this... (I'm still catching up on the list since I was swamped with other tasks since Saturday) But, here goes anyway... Would it make sense to let the user browse (and possibly modify) the logging configuration via the AdminServlet ( ... /axis/servlet/AdminServlet link)? We should be able to enumerate the log4j appenders and identify and display, if nothing else, the location of the log file for folks who are new to Axis. I've already made a few modifications to AdminServlet so that it displays the list of currently deployed services with links to their dynamic wsdl (ie "http://localhost:8080/axis/services/SomeService?wsdl") and have a few more things to add before I send it to you guys. It should be pretty easy for me to add the high-level log4j config display to it as well. Any comments? Alternatives? Suggestions? Alan -----Original Message----- From: Doug Davis [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 4:10 PM To: [EMAIL PROTECTED] Subject: Re: cvs commit: xml-axis/java/samples/stock GetQuote.java I'd like to raise this as an issue - not sure whether or not its worth stopping the beta or not (probably not) but I do think that if this is not fixed a lot of newbies will be very very confused. Right now we seem to log almost everything. This change is an example of how something that should clearly go to stderr was being sent to some mystery log file WHICH btw 3 commiters of axis (I'll keep the other 2 people out of this - but they're "in the know") could not figure out where the heck log message go. So, I see two problems here: 1 - how can we expect newbies to figure it out when its such a mystery that axis developers themselves don't know (or at least not easily). 2 - we log too much. Simple things like errors while running the AdminClient (from "main") are logged instead of being printed to the screen - which leaves cmd line people thinking it worked. I really think the choice between logging and println's need to be reexamined. I think we've gone too far one direction. -Dug ps. this fixed my "issue #2" for the beta. [EMAIL PROTECTED] on 03/12/2002 04:00:34 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: cvs commit: xml-axis/java/samples/stock GetQuote.java dug 02/03/12 13:00:34 Modified: java/samples/stock GetQuote.java Log: Make error message go to the screen instead of some mystery log file that newbies will never find. Revision Changes Path 1.38 +1 -1 xml-axis/java/samples/stock/GetQuote.java Index: GetQuote.java =================================================================== RCS file: /home/cvs/xml-axis/java/samples/stock/GetQuote.java,v retrieving revision 1.37 retrieving revision 1.38 diff -u -r1.37 -r1.38 --- GetQuote.java 8 Feb 2002 22:14:11 -0000 1.37 +++ GetQuote.java 12 Mar 2002 21:00:34 -0000 1.38 @@ -138,7 +138,7 @@ } catch( Exception e ) { if ( e instanceof AxisFault ) { - ((AxisFault)e).dump(); + System.err.println( ((AxisFault)e).dumpToString() ); } else e.printStackTrace(); }