Added Referer to the pre-defined Caddy JSON log format.
@@ -77,11 +77,11 @@ static const GPreConfLog logs = {
"%^ %v [%d:%t %^] %h %^\"%r\" %s %^ %b %^ %L %^ \"%R\" \"%u\"", /* Amazon S3 */
/* Caddy JSON */
- "{\"ts\":\"%x.%^\",\"request\":{\"remote_addr\":\"%h:%^\",\"proto\":\"%H\","
- "\"method\":\"%m\",\"host\":\"%v\",\"uri\":\"%U\","
- "\"headers\":{\"User-Agent\":[\"%u\"]},\"tls\":{\"cipher_suite\":\"%k\","
- "\"proto\":\"%K\"}},\"duration\":\"%T\",\"size\":\"%b\",\"status\":\"%s\","
- "\"resp_headers\":{\"Content-Type\":[\"%M\"]}}"
+ "{ \"ts\": \"%x.%^\", \"request\": { \"remote_addr\": \"%h:%^\", \"proto\":"
+ "\"%H\", \"method\": \"%m\", \"host\": \"%v\", \"uri\": \"%U\", \"headers\": {"
+ "\"User-Agent\": [\"%u\"], \"Referer\": [\"%R\"] }, \"tls\": { \"cipher_suite\":"
+ "\"%k\", \"proto\": \"%K\" } }, \"duration\": \"%T\", \"size\": \"%b\","
+ "\"status\": \"%s\", \"resp_headers\": { \"Content-Type\": [\"%M\"] } }"
};
static const GPreConfTime times = {
