$formatFields
$formatFields :
Format descriptor for the W3C extended log file format (see: https://www.w3.org/TR/WD-logfile.html).
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):
date, time, c-ip, cs-username, s-computername, s-ip, s-port, cs-method, cs-uri-stem, cs-uri-query, sc-status, sc-bytes, time-taken, cs-version, cs-host, cs-user-agent, cs-cookie, cs-referrer, sc-substatus directives (meta): dir_version, dir_fields, dir_start-date, dir_software, dir_remark
object|null | $inject | Can be used to inject one or more parameter(s) into the constructor |