What is the recommended way to log debug etc? srdout or some sort of shelf middleware?
In this example if you specify a return type then you get a second param RequestContext which providers access to .logger(...)
But if you're just using the basic shelf request, then you don't get a RequestContext. Although this code here looks like there is some sort of support for logging from a client but I'm not sure where that logger is getting assigned.
What is the recommended way to log debug etc?
srdout
or some sort of shelf middleware?In this example if you specify a return type then you get a second param
RequestContext
which providers access to.logger(...)
But if you're just using the basic shelf request, then you don't get a
RequestContext
. Although this code here looks like there is some sort of support for logging from a client but I'm not sure where thatlogger
is getting assigned.Thanks