# Clearing log files

**URL:** https://www.finalbuilder.com/forums/t/clearing-log-files/4357
**Category:** Discussion
**Created:** [March 6, 2009, 5:13am UTC](https://www.finalbuilder.com/forums/t/clearing-log-files/4357 "2009-03-06T05:13:30Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 6, 2009, 5:13am UTC](https://www.finalbuilder.com/forums/t/clearing-log-files/4357/1 "2009-03-06T05:13:30Z")

</div>

How can I progromatically clear the log files (.log2) ?

I want to keep the logs until the project completes, then I want to get rid of them, if it fails then export the log to HTML then clear it.

&nbsp;

Thanks

Gary H

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [March 10, 2009, 3:00am UTC](https://www.finalbuilder.com/forums/t/clearing-log-files/4357/2 "2009-03-10T03:00:49Z")

</div>

Hi Gary   
  
 if you use the /TL option on atcmd then it will log to a temporary log file, which will be deleted once the process is done.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 10, 2009, 2:30am UTC](https://www.finalbuilder.com/forums/t/clearing-log-files/4357/3 "2009-03-10T02:30:06Z")

</div>

Thanks Vincent - i will give this a go today.

&nbsp;

Gary H

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 10, 2009, 4:19am UTC](https://www.finalbuilder.com/forums/t/clearing-log-files/4357/4 "2009-03-10T04:19:44Z")

</div>

Thanks - it worked a treat, I really should sit down and read the manual.

Gary H

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 12, 2009, 1:42am UTC](https://www.finalbuilder.com/forums/t/clearing-log-files/4357/5 "2009-03-12T01:42:22Z")

</div>

Vincent,

still have an issue with this...

If I use the temp log files, the number of files builds up. I have one script running every 10 minutes to ftp data files to a WEB server, the log files are named FB316A - FB316B etc...&nbsp; It managed to fill the drive over night.

&nbsp;

Is there a way to identify which log files belong to which process and the kill them?&nbsp; IE if I could get the process number I could get that process to kill its log files on a successfull completion, or export to html then kill the log files.

&nbsp;

Thanks

Gary H

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [March 13, 2009, 12:12pm UTC](https://www.finalbuilder.com/forums/t/clearing-log-files/4357/6 "2009-03-13T12:12:55Z")

</div>

Hi Gary   
  
 Automise should be deleting it’s temporary log files, if it’s not then that’s a bug, I’ll look into it.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 13, 2009, 1:59am UTC](https://www.finalbuilder.com/forums/t/clearing-log-files/4357/7 "2009-03-13T01:59:36Z")

</div>

Thanks Vincent, in the mean time I have disabled logging (/s) but it does mean that i cant track failures.

Gary H
