On Thursday, 24 November 2016 at 07:57:47 UTC, Jacob Carlborg
wrote:
On 2016-11-24 07:29, Saurabh Das wrote:
[...]
Yes. You can configure the logging on the HTTPServerSettings
[1] instance. If you look at the documentation, the first four
fields are related to logging. Use "accessLogFile" to set the
filename of the log file. Use "accessLogFormat" to configure
the log format. It uses the same syntax as Apache.
Unfortunately the syntax is not documented in vibe.d and it
doesn't implement all of the features that Apache has. I looked
at the source code to figure out the format [2]. %D will give
you the time taken to serve the request in milliseconds and %T
in seconds. %t will give you the time stamp the request was
received. I don't see anything related to waiting time.
[...]
Thanks Jacob. That is precisely what I needed. :)