$formatFields
$formatFields :
Format descriptor for the combined log format (see: https://httpd.apache.org/docs/1.3/logs.html#combined).
setFieldAttribute(string $field_name, string $attribute_name, string $value)
string | $field_name | ID of log format field. |
string | $attribute_name | Name of the DescriptorField attribute ("name", because it serves as an ID, is immutable). |
string | $value | Value to assign the DescriptorField attribute for the desired field ID. |
getInstance(array|mixed|null $inject = null) : \phpWTL\$_instance[$class]
Create new instance or give back already existing one.
array|mixed|null | $inject | Can be used to inject one or more parameter(s) into the constructor |
The instance of a derived class
__construct()
Set format prefix and create all additional format field descriptors in their proper sequence (array of DescriptorField objects):
referrer, user_agent (appended to and in addition to those of common: host_ip, client_identity, user_id, timestamp, request_line, status_code, content-size)