$retrievalPolicies
$retrievalPolicies :
Logger for the NCSA common log format (see: https://en.wikipedia.org/wiki/Common_Log_Format).
A logger in its basic form typically handles the following tasks:
- Instantiate a LoggerContent object and provide it with a format blueprint in form of a static FormatDescriptor class
- Initialize a DataRetriever and provide it with a LoggerContent object (and if applicable with RetrievalPolicies)
- Initialize a DataValidator and provide it with a LoggerContent object
- Initialize a DataFormatter and provide it with a LoggerContent object
- Provide a method to perform the actual logging (i.e. invoke retriever, validator and formatter accordingly)
log(array $params = null) : array
Perform the actual logging process:
array | $params | Logger parameters (bool "validate" default "false", bool "format" default "true") |
Validation errors (null if none)
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 $retrievalPolicies = null)
The constructor must perform the following taks:
object | $retrievalPolicies | Provide policies for data retrieval (if applicable). |