I'm writing a Java Web Service to to user authentication for our applications. This is running under Jetty, which is started by the Tanuki service wrapper.
I've got the web service somewhat working but I can't seem to get logging working. I've imported: import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; To the .jws program. Nothing comes out for the log.debug levels. It looks like LogFactory.getLog() is getting me a logger object for org.apache.commons.logging.impl.SLF4FLogFactory. I either need to figure out how to use that logger, or switch to the log4j logger that I'm use to. I have log4j in the class path. According to the docs, that should be the priority logger. I tried setting the system property org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger but that doesn't seem to affect anything. I've tried creating a commons-logging.properties file in various places. Not exactly sure what needs to go in there, I currently have org.apache.commons.logging.Log=log4j. Any hints anyone? Thanks. --- Wayne Johnson, | There are two kinds of people: Those 3943 Penn Ave. N. | who say to God, "Thy will be done," Minneapolis, MN 55412-1908 | and those to whom God says, "All right, (612) 522-7003 | then, have it your way." --C.S. Lewis --------------------------------- Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta.
