Forum Moderators: phranque

Message Too Old, No Replies

Log response time

         

frist44

10:06 pm on Feb 19, 2009 (gmt 0)

10+ Year Member



I'm trying to log response time and I have the following:

#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %T/%D" combined
CustomLog "C:/full.log" combined

It doesn't seem to be logging the %T and %D. I have log module loaded and everything.

any idea?

jdMorgan

11:05 pm on Feb 19, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The LogFormat line posted above is commented-out; Remove the "#" character.
The path specified in CustomLog must be relative to the previously-defined server root, not an absolute disk filepath.

Not sure if those are the only problems, though.

Jim

frist44

11:20 pm on Feb 19, 2009 (gmt 0)

10+ Year Member



Thanks Jim. In my code, there is no comment in front of it. I had commented it out to try and test some of other ideas, but it didn't fix it. I'll update the post so that doesn't throw anyone off.

Also, this is a WAMP installation, so I'm not sure if that's the problem. With that path, it creates it and everything, but posts the default log format to it. Would the absolute path be the reason?

Caterham

5:35 pm on Feb 20, 2009 (gmt 0)

10+ Year Member



With that path, it creates it and everything, but posts the default log format to it. Would the absolute path be the reason?

I.e. logging works, so no.

It doesn't seem to be logging the %T and %D.

But you get the slash logged right to the user agent? If not, your log format combined is overwritten again, change the name.

frist44

5:40 pm on Feb 20, 2009 (gmt 0)

10+ Year Member



That was it. The name was defined as a format in the Global settings. I changed the name to "full" and it worked fine.

thanks!