nova-logs icon indicating copy to clipboard operation
nova-logs copied to clipboard

Log Context not viewable

Open ThaDaVos opened this issue 3 years ago • 2 comments

How would one see the Log Context when logging like this?

Log::info("Hello World", [ 'value' => 'X' ]);
```

ThaDaVos avatar Apr 19 '21 07:04 ThaDaVos

Same here, context not shown.

pitylee avatar Mar 11 '22 12:03 pitylee

Found a tweak, and because this was planned for Exception context viewing, maybe this is the expected behaviour.

If you insert a new line and include in the message itself, it will recognize it as exception (Since exception will append a new line and include the exception as object)

Log::info('asd ' . PHP_EOL . '{"some": "json"}')

pitylee avatar Apr 02 '22 01:04 pitylee