This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 246732

Summary: Clear Apache Tomcat log file when clearing log window
Product: serverplugins Reporter: Eccenux
Component: TomcatAssignee: Petr Hejl <phejl>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

Description Eccenux 2014-08-27 16:11:15 UTC
When I clear "Apache Tomcat Log" window the actual log file is not cleared and when I run the application again I get errors from previous run.

This is confusing.

Please either clear the log file or remeber where you've finished and show only new lines.

PS: I did try clearing logs in setenv.bat of Tomcat, but that didn't work. I get message like:
```
The process cannot access the file because it is being used by another process.
c:\Program Files\Apache Software Foundation\Apache Tomcat 7.0.34\logs\localhost.2014-08-27.log
```
So a workaround for me would be to have something run before the file is locked.