Currently, my IIS log looks like this (using W3C logging):
2012-02-15 00:31:50 W3SVC1 ...
Is there a way to include milliseconds, such as:
2012-02-15 00:31:50.123 W3SVC1 ...
iisiis-7.5logging
Currently, my IIS log looks like this (using W3C logging):
2012-02-15 00:31:50 W3SVC1 ...
Is there a way to include milliseconds, such as:
2012-02-15 00:31:50.123 W3SVC1 ...
Best Answer
If you have no problem with an alternative logging provider, simply download, install, enable and configure the Advanced Logging extension to IIS 7 and 7.5
The standard definition of the UTC time stamp, is in the format:
HH:MM:SS.sss
just as you want.For more information on the Advanced Logging feature and how to configure it, read this blog post
With the built-in W3C extended log format: No!
Though I can't possibly know that. The only thing I know, is that the official W3C standard draft specifies that the time field is NOT of the same type as the time-taken field (which does include milliseconds).
They are of the types
<time>
and<fixed>
, respectively, and I wouldn't be surprised if Microsoft hardcoded the formats, since the draft allows for some freedom to choose how accurate an implementation should be (just HH:MM would be considered a valid<time>
format)