Home > Back-end > Log4j logging test is normal, only after the deployment server startup to generate a log file, in th
Log4j logging test is normal, only after the deployment server startup to generate a log file, in th
Time:11-25
As title, I hope the effect is the log at the end of the day of the day, automatically generate a has the date for the suffix of log files, the second day of the log writes a new file, my configuration is as follows: Log4j. RootLogger=the debug console, D, E,
As a result, the local test, manual modification time, the application can be segmentation and generate log files by date, but after deployment to win2008 server, application startup only generates a file, the daily logs are appended to the log file, Beg god for help,
CodePudding user response:
No one in? Pray god help
CodePudding user response:
Have the person had the same situation
CodePudding user response:
See if there is something wrong with the file path and whether has the authority to write files
CodePudding user response:
Your log file name is dead, of course, there is only one file
CodePudding user response:
Solve the building Lord, you and I encounter problems, and, when I was at the local, to run in one of the tomcat, manually modify time will generate a log file, but not in another, so log4j configuration should be no problem, should be a tomcat and environmental problems, but I just can't find, according to the various methods are tried in the baidu, or not, the original poster is how to solve?