The Blog That Refused To Throw NPE
Quick links:
batch
,
books
,
git
,
Java
,
Javascript
,
symfony
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:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment