$formatFields
$formatFields :
Format descriptor for the NCSA common log format (see: https://en.wikipedia.org/wiki/Common_Log_Format).
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(object|null $inject = null)
Set format prefix and create all format field descriptors in their proper sequence (array of DescriptorField objects):
host_ip, client_identity, user_id, timestamp, request_line, status_code, content-size
object|null | $inject | Can be used to inject one or more parameter(s) into the constructor |