Need a working example of configuring log4j RollingFileAppender via properties

前端 未结 4 1034
北恋
北恋 2021-02-02 18:10

I am using log4j for logging, and a property file for configuration. Currently, my log files are too big (3.5 GB is too large for a log file). So think I need to use Ro

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-02 18:43

    Start by setting the -Dlog4j.debug JVM parameter. That prints out a few useful lines of debug information showing which config file it's found and is using, etc. That should give you some clues to what's going wrong.

    See http://logging.apache.org/log4j/1.2/manual.html

提交回复
热议问题