javaloggingsunone

New log file not generating?


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.


Solution

  • 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.