Froxlor icon indicating copy to clipboard operation
Froxlor copied to clipboard

Feature Request: Multi-line for log format

Open patschi opened this issue 5 years ago • 3 comments

I'd like to see the setting Settings - Webserver Settings - Access-log format as a multi-line input for more extended log formats. Having the whole format in a single line is really hard to read - and it might happen to just have longer log formats.

As an example see the nginx amplify recommended log format:

log_format  main_ext  '$remote_addr - $remote_user [$time_local] "$request" '
                        '$status $body_bytes_sent "$http_referer" '
                        '"$http_user_agent" "$http_x_forwarded_for" '
                        '"$host" sn="$server_name" '
                        'rt=$request_time '
                        'ua="$upstream_addr" us="$upstream_status" '
                        'ut="$upstream_response_time" ul="$upstream_response_length" '
                        'cs=$upstream_cache_status' ;

Just to point that out: I'm unsure if this might conflict with apache2 in terms of support of multi-line log formats.

patschi avatar Feb 12 '19 11:02 patschi

Apache directives can be splitted using \ ;) but then again, if you let users add content to a text area they might add the line breaks themselves or not and then we start "parsing" the whole thing...very ugly :/

d00p avatar Feb 12 '19 11:02 d00p

Would'nt a selectbox be better for this? This selectbox could even be populated by admins (or hardcoded) with new options.. ?

pquerner avatar May 03 '19 23:05 pquerner

possible yes, but not very high priority

d00p avatar May 04 '19 13:05 d00p