Skip to content

Commit

Permalink
[UNDERTOW-2321] add "commonv" pattern to accesslog
Browse files Browse the repository at this point in the history
  • Loading branch information
baranowb committed Mar 6, 2024
1 parent 6fab77b commit bd7a603
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ public AccessLogHandler(final HttpHandler next, final AccessLogReceiver accessLo
private static String handleCommonNames(String formatString) {
if(formatString.equals("common")) {
return "%h %l %u %t \"%r\" %s %b";
} if(formatString.equals("commonv")) {
return "%h %l %u %t \"%r\" %s %b %T \"%I\"";
} else if (formatString.equals("combined")) {
return "%h %l %u %t \"%r\" %s %b \"%{i,Referer}\" \"%{i,User-Agent}\"";
} else if(formatString.equals("commonobf")) {
Expand Down

0 comments on commit bd7a603

Please sign in to comment.