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 - Clear Apache Tomcat log file when clearing log window
Summary: Clear Apache Tomcat log file when clearing log window
Status: NEW
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal with 3 votes (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-27 16:11 UTC by Eccenux
Modified: 2014-08-28 08:42 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.