$formatFields
$formatFields :
Format descriptor for PHP event/error/exception logging.
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):
timestamp, message, loglevel_caption, loglevel, context_data
object|null | $inject | Can be used to inject one or more parameter(s) into the constructor |