I'm able to open Tomcat log files with Notepad, while Tomcat is running.
I guess the lock happens when Tomcat is writing to the log file, and the file is being opened simultaneously. I think you're using the Windows Installer and I've installed mine from the zip file. I don't know if it makes a difference in case of locking log files. Also there are few tail -f utilities for Windows that simulate the Unix tail -f command, helpful to view recent changes to the log file or see it running. I don't know if Textpad does that, you my have to scroll to the bottom to see changes. Regards Rashmi On 5/2/07, Johnny Kewl <[EMAIL PROTECTED]> wrote:
Thanks... does the trick. But still wondering why the file handles are left open... I would think its not good practice. ----- Original Message ----- From: "Venkat Venkataramanan" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <users@tomcat.apache.org> Sent: Wednesday, May 02, 2007 8:45 PM Subject: RE: Log files always locked > Johnny: > > I use Textpad to open the log file; if the log file is updated, it will > automatically update the screen. Try that. > > -----Original Message----- > From: Johnny Kewl [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 02, 2007 2:34 PM > To: Tomcat Users List > Subject: Log files always locked > > Just something that bugs me..... > On windows if you try open a tomcat log file... which are typically > associated with something like notepad, you get "In Use By Another > Program". > Why does Tomcat lock the file handle indefinitely? > It maybe good programming practice but windows utilities generally dont > give > one the option of "will open as read only"... its always a mission just to > read a log file.
--------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]