Froxlor
Froxlor copied to clipboard
Feature Request: Multi-line for log format
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.
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 :/
Would'nt a selectbox be better for this? This selectbox could even be populated by admins (or hardcoded) with new options.. ?
possible yes, but not very high priority