Tuesday 20 May 2008

How to clear the log file

Now, there is one important issue we didn't cover in our previous post about logs: how to clear the log when it starts taking up too much space.

Probably the simplest way to do this is to redirect type NUL to your log file, as follows:

type NUL > your_log.log


That's it! You will find your_log.log file size drops back to 0 once you have called this command.

Thoughts?

No comments:

Online Marketing
Add blog to our blog directory blog search directory Blog Directory Blogarama - The Blog Directory