Write log file using org.apache.commons.logging
问题 I'm writing an application where I need to write log to a file using org.apache.commons.logging library, but i don't know how to start. Can anyone help me? Thanks & best regards. 回答1: Try this sample, first you need two properties files likes this; commons-logging.properties that put in your application's classpath. The contents of this file should look like: org.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger You can also use Log4j logger besides Jdk14Logger.And need