|
@@ 54-56 (lines=3) @@
|
| 51 |
|
{ |
| 52 |
|
$replacements = []; |
| 53 |
|
|
| 54 |
|
if (false !== strpos($this->messageFormat, '%datetime%')) { |
| 55 |
|
$replacements['%datetime%'] = $this->convertToString($record->getCreatedAt()); |
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
if (false !== strpos($this->messageFormat, '%channel%')) { |
| 59 |
|
$replacements['%channel%'] = $record->getChannel(); |
|
@@ 70-72 (lines=3) @@
|
| 67 |
|
$replacements['%message%'] = $record->getMessage(); |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
if (false !== strpos($this->messageFormat, '%context%')) { |
| 71 |
|
$replacements['%context%'] = $this->convertToString($record->getContext(), true); |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
if (false !== strpos($this->messageFormat, '%extras%')) { |
| 75 |
|
$replacements['%extras%'] = $this->convertToString($record->getExtras(), true); |
|
@@ 74-76 (lines=3) @@
|
| 71 |
|
$replacements['%context%'] = $this->convertToString($record->getContext(), true); |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
if (false !== strpos($this->messageFormat, '%extras%')) { |
| 75 |
|
$replacements['%extras%'] = $this->convertToString($record->getExtras(), true); |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
return strtr($this->messageFormat, $replacements); |
| 79 |
|
} |