laravel / pail

Dive into your Laravel application's log files directly from the console. 🪣
MIT License
769 stars 21 forks source link

displaying arrays #18

Closed michabbb closed 1 year ago

michabbb commented 1 year ago

i assume the current state is wanted, but because it looks very strange to me, I just wanted to mention it:

this....

Log::debug('test',['test' => 'test', 'test2' => 'test2','test3' => 'test3']);

produces this:

image

and I personally would expect an output where the array gets displayed like dump(...) does:

image

so it´s readable for a human. ideas ?

nunomaduro commented 1 year ago

We will consider changing this if more people report it. Thanks!

michabbb commented 10 months ago

many years ago:

me: having dump() without knowing from which line it comes: total nonsense and stupid
everyone else: wuff wuff wuff.... nobody cares, it´s your problem using it more than once in your code
years later: hey, great news: dump() now shows the line of code where it comes from
everyone else: wow, great! amazing !!! party !!!

image