log4j可以设置日志文件路径为相对目录

如:

  log4j.appender.file.File = log/theLog.log

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.