log4j.rootLogger=DEBUG, FILE log4j.appender.FILE=org.apache.log4j.FileAppender log4j.appender.FILE.File=/path/to/logs/application.log log4j.appender.FILE.layout=org.apache.log4j.PatternLayout log4j.appender.FILE.layout.ConversionPattern=%d [%t] %-5p %c:%L - %m%n import org.apache.log4j.Logger; public class ExampleClass { private static final Logger LOGGER = Logger.getLogger(ExampleClass.class); public void doSomething() { } }


上一篇:
下一篇:
切换中文