PDA

View Full Version : How do I clear log.txt?



tfish77
2007-07-10, 06:58
I'm sure this is a silly question, but I can't find the answer in the forums or the wiki. I am running SlimServer on a Windows XP box, and I want to clear out the log.txt file. I am not specifying a specific filename when I start SS, I am just using the default. I can browse to http://localhost:9000/log.txt, and I see some entries in there. I'd like to clear that file out to do some testing without re-starting my SlimServer and specifying a new file name for the log file.

Is this possible?

I have searched my entire box for log.txt and slimserver.log but haven't found either.

Thank you!

kdf
2007-07-10, 22:02
On 10-Jul-07, at 6:58 AM, tfish77 wrote:
>
> I have searched my entire box for log.txt and slimserver.log but
> haven't found either.
>
You won't find it, as it is only a virtual log. log.txt only exists
for the purposes of a url. You can't clear it aside from restarting,
but you can refresh the browser page to get the latest section.

If you want to test something specific, stop the server and run it from
the command line instead:

c:\program files\slimserver\server\slim.exe --logfile c:\myserverlog.txt

then you can view c:\myserverlog.txt any time you want. You can add
any debug flags that you want to use in the command above if you wish,
or turn them on from the web UI.

-kdf