littlemanco / www.littleman.co

Website
1 stars 1 forks source link

As a developer I'd like to know why I should log with a standard message and context object, rather than `sprintf()` #51

Closed andrew-howden closed 5 years ago

andrew-howden commented 5 years ago

I'd expect this documentation to be in the form of documentation

Create a new section which is like:

Software Engineering → Logging

And add a section called "message" or "payload".

Have a sample there of something like:

$this->log('Foo message is "%S", $bar');

Vs

$this->log('', ['foo' => $bar'));

Or whatever. Make some error condition up.

stale[bot] commented 5 years ago

This issue has not received any updates in quite some time. It's not clear whether it's still relevant, and should be kept. If there is no more activity in the next 14 days on this ticket, I will close it. It can always be reopened later, but for now in the interests of keeping the project as clear and simple as possible it will be closed. If you'd like to keep it open simply comment:

"This needs to remain open"

And I will leave it alone for the next 90 days or so. Alternatively, if you are already sure that this is no longer relevant you can also close it directly. For more information see:

https://l.littleman.co/2XnF2B3