Today I made a backup of all log files of my Web Application on SunOneWebServer. I moved all the existing log files in new Folder Log_Bkp. But now new log files are not being generated. In the code we have

(!createLogfile())
 throw exception

But no exception being thrown too. Not able to understand why is it happening? On my local Apache Tomcat server its working fine. If you need more information please comment.

有帮助吗?

解决方案

I moved the files while the server was still running. When i try this in Apache Tomcat local server it gives an error that it is being used by some system. But on Server it did not gave any warning. But when we restarted the server new files are being created.

P.S: Whenever we move or delete any files on the server, please ensure that the server is stopped first.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top