如何是用Spring方式生成的log,取得类名
首先在web.xml中:[code="xml"]org.springframework.web.util.Log4jConfigListenerlog4jConfigLocationclasspath:log4j.xml[/code]之后在log4j.xml中[code="xml"]value="%p - %C{1}.%M(%L) | %m%n" />[/code]试试吧