Standard Logging

Hi Folks,

In your documentation for v.4, there’s no mention of logging. We’ve been trying to set things up, but need to log debugging information out to a file (or anywhere, really). But there are no examples anywhere. And while there are plenty of questions that are more specific and advanced, I can’t seem to get that one thing set up that feeds information out to the traffic logs. I do see that there is a slot in the addErrorMiddleware function for a logger, but do I need to get a third party system, like Monolog?

Thanks for your help.

Slim doesn’t include a built-in logging library, but it is designed to integrate any PSR-4 compatible libraries, like Monolog.

1 Like

Thanks, we opted to use the Skeleton Framework to get us going.

https://github.com/slimphp/Slim-Skeleton