Wednesday, January 27, 2016

IISExpress Trace/Log Files

I noticed by accident while using TreeSize Free that this folder:

MyDocuments\IISExpress\TraceLogFiles

Contained hundreds of log files taking over 120MB. I'd never noticed them before and they looked useless, even to a software developer. Some web articles also hinted the log files weren't of much use and suggested that delete the contents of both the Logs and TraceLogFiles folders. To disable the logging it was suggested that you edit:

MyDocuments\IISExpress\config\applicationhost.config

And comment out the line containing HttpLoggingModule in the globalModules section. I found it in two places and commented out both of them. After rebooting and compiling and running some web apps it looks like no more logging or trace files are generated.

No comments:

Post a Comment