2 namespace TYPO3\CMS\Core\Log;
102 ->setCreated(microtime(
true))
209 $this->data = array_merge($this->data, $data);
265 $timestamp = date(
'r', (
int)$this->created);
268 if (!empty($this->data)) {
271 if (isset($this->data[
'exception']) && $this->data[
'exception'] instanceof \
Exception) {
272 $this->data[
'exception'] = (string)$this->data[
'exception'];
274 $data =
'- ' . json_encode($this->data);
276 $logRecordString = sprintf(
277 '%s [%s] request="%s" component="%s": %s %s',
285 return $logRecordString;
296 'requestId' => $this->requestId,
297 'created' => $this->created,
298 'component' => $this->component,
299 'level' => $this->level,
300 'message' => $this->message,
301 'data' => $this->data
313 $offsetExists =
false;
314 if (in_array($offset, $this->gettableProperties,
true) && isset($this->{$offset})) {
315 $offsetExists =
true;
317 return $offsetExists;
328 if (!in_array($offset, $this->gettableProperties,
true)) {
331 return $this->{$offset};
343 if (in_array($offset, $this->settableProperties,
true)) {
344 $this->{$offset} = $offset;
356 if (in_array($offset, $this->settableProperties,
true)) {
357 unset($this->{$offset});