Time format in log

It see that builtin log formats as well as the log-format option uses %t to log the time of the transaction.
From the documentation:

| | %t | date_time (with millisecond resolution) | date |

This produces this in the my log files:
10/Aug/2022:19:13:17.817

How do I configure the time/date format? I’d much prefer the year first:
YYYY/MM/DDTHH:mm:ss.XXX

Thanks in advance.