I am using WSAD,log4j for logging.If i want to see the log, I need to stop the server, then only I can open the log file. cos the log is locked by server. is there any solution in Java to read the log file, at the same time the server is running.
What are you trying to use to open the log file? What OS are you using? Unix operating systems make such tasks very easy. VI, cat and tail all can be used on open files. If you are stuck with Windows try a programmer's editor like JEdit
Thanks my application is running in WSAD Test Environment, the log file is written in /appn/sys/logs path. I need to see the log file content. my OS is WINXP, whenever I try to open the log file using wordpad, it displays a message, file is been using by another application. So I should stop the server then I can see the log file. What I am looking can I open the log file while the application running? is it possible?