$_encoding
$_encoding :
encoding
Representation of the content of a single log entry/log event.
This is a generic container class to store the field contents of a single logger entry. Instances of this class use dynamic getters and setters to deal with variable logging formats. This container is capable of character encoding.
setFieldEncoding(string $key, string $encoding_assumption, string $encoding)
Helper method to set the encoding for a given format field
string | $key | Name of attribute (format field). |
string | $encoding_assumption | The character encoding assumption/strategy. |
string | $encoding | Character encoding. |
toString(array $whitelist = null) : string
String representation of the log-entry content, regular (non-meta) fields according to whiteliste parameter, separated by the line delimiter (this is a typical logfile line).
array | $whitelist | If given two things will be done: a) only fields matching the list will be included in the return array and b) the return array will be sorted according to the order of the whitelist. |
toStringMeta(array $whitelist = null) : string
String representation of the log-entry content meta fields according to whiteliste parameter, separated by the line delimiter.
array | $whitelist | If given two things will be done: a) only fields matching the list will be included in the return array and b) the return array will be sorted according to the order of the whitelist. |
toArrayTyped(array $whitelist = null) : array
Associative array representation of the regular (non-meta) log-entry content.
array | $whitelist | If given two things will be done: a) only fields matching the list will be included in the return array and b) the return array will be sorted according to the order of the whitelist. |
toArrayTypedTrimmed(array $whitelist = null) : array
Associative array representation of the regular (non-meta) log-entry content.
array | $whitelist | If given two things will be done: a) only fields matching the list will be included in the return array and b) the return array will be sorted according to the order of the whitelist. |
toArrayTypedMeta(array $whitelist = null) : array
Associative array representation of the regular (non-meta) log-entry content.
array | $whitelist | If given two things will be done: a) only fields matching the list will be included in the return array and b) the return array will be sorted according to the order of the whitelist. |
toArrayTypedMetaTrimmed(array $whitelist = null) : array
Associative array representation of the regular (non-meta) log-entry content.
array | $whitelist | If given two things will be done: a) only fields matching the list will be included in the return array and b) the return array will be sorted according to the order of the whitelist. |
toArray(array $whitelist = null) : array
Associative array representation of the regular (non-meta) log-entry content.
array | $whitelist | If given two things will be done: a) only fields matching the list will be included in the return array and b) the return array will be sorted according to the order of the whitelist. |
toArrayTrimmed(array $whitelist = null) : array
Associative array representation of the regular (non-meta) log-entry content, prefix+suffix trimmed.
array | $whitelist | If given two things will be done: a) only fields matching the list will be included in the return array and b) the return array will be sorted according to the order of the whitelist. |
toArrayMeta(array $whitelist = null) : array
Associative array representation of the log-entry meta content.
array | $whitelist | If given two things will be done: a) only fields matching the list will be included in the return array and b) the return array will be sorted according to the order of the whitelist. |
toArrayComplex(array $whitelist, boolean $trimmed, boolean $meta) : array
Internal helper method for "toArrayTyped", "toArrayTypedMeta", "toArrayTypedTrimmed" and "toArrayTypedMetaTrimmed"
array | $whitelist | If given two things will be done: a) only fields matching the list will be included in the return array and b) the return array will be sorted according to the order of the whitelist. |
boolean | $trimmed | Call "toArrayTrimmed" or check if $meta is set and... |
boolean | $meta | Call "toArrayMeta" or just "toArray" |