简体   繁体   中英

Viewing IIS logs on the console

Is there a way to view IIS logs the way I can view iisexpres.exe logs? I mean real time, on the console? The most important part of the question is of course 'realtime', because IIS caches log contents and flushes it periodically.

m.

The answer really depends on specifically what are you trying to achieve, if it is for development purposes or more proudction use. There is no easy way to look at "logs" specifically in real time. However, I can think of a couple of options:

  1. You could use LogParser to parse the logs in the command line and use "netsh http flush logbuffer" to force the flushing of the logs to the files.
  2. You can use ETW tracing to read the IIS Traces
  3. You could use Advanced Logging Module and leverage it to consume real-time events.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM