mini\Logger\Logger::preprocessContext()
Method
private
Signature
private function preprocessContext(array $context): array
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$context |
array |
required | Documentation missing |
Returns
array
Documentation
Preprocess context values for MessageFormatter compatibility
Converts non-scalar values to string representations with markdown-style formatting:
- null →
null - true/false →
true/false - arrays → JSON
- exceptions → skipped (handled separately)
- objects with __toString → string value
- other objects →
ClassName