2

When configuring a PHP5-FPM pool, one can specify the format for all access log entries by setting the value for access.format.

The default provided .conf file stated:

; %t: server time the request was received ; it can accept a strftime(3) format: ; %d/%b/%Y:%H:%M:%S %z (default) ; %T: time the log has been written (the request has finished) ; it can accept a strftime(3) format: ; %d/%b/%Y:%H:%M:%S %z (default) 

However, I searched high and low and cannot find any documentation as to how I can modify the strftime format for the %t/%T variables.

Can you provide me with an example on how I can change the format of the %t/%T variable to my liking?

1 Answer 1

1

Here is an example where we log the time only:

access.format = "%R - %u %{%H:%M:%S}t \"%m %r\" %s" 

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.