How to inject $this->logger into routes.php in slim4

That hints helped me:

One more question:
how to “log” a $request inot a string ? or whatever $logger->info($request);
could manage?