You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the \Slim\Log::log function converts any object passed in to a string and then eventually sends that resulting conversion to the logwriter. I think it would be more beneficial to only do a conversion to string if there is some context to work with and allow the log writer to determine how it wants to handle the object passed if there is no context.
I'm thinking of the case of using other logging solutions like Monolog - It's difficult to take full advantage of passing an object to Monolog without extending the \Slim\Log class and overloading with my own log() function to pass the raw object instead of a typecasted representation.
The text was updated successfully, but these errors were encountered:
Currently the \Slim\Log::log function converts any object passed in to a string and then eventually sends that resulting conversion to the logwriter. I think it would be more beneficial to only do a conversion to string if there is some context to work with and allow the log writer to determine how it wants to handle the object passed if there is no context.
I'm thinking of the case of using other logging solutions like Monolog - It's difficult to take full advantage of passing an object to Monolog without extending the \Slim\Log class and overloading with my own log() function to pass the raw object instead of a typecasted representation.
The text was updated successfully, but these errors were encountered: