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
I'm trying to write my own logging filters, and I've got most of the way, but I'm unsure if it's possible to access the response status code and logged it. Here's a truncated example of my code at the moment
Hm, the problem is that you can return any impl Reply, which may not have a status code available (or a Rejection). One solution to that more generic problem might be adding public methods to Reply, like status. I hadn't decided if that would be a good thing, as it can make eventually implementing Reply externally more annoying...
As for custom logging, we could see about fleshing out the warp::log filters. There's the simplest warp::log("logger_name"), but there are additional pieces in that module meant to allow plugging in custom loggers.
I'm trying to write my own logging filters, and I've got most of the way, but I'm unsure if it's possible to access the response status code and logged it. Here's a truncated example of my code at the moment
any guidance would be appreciated!
The text was updated successfully, but these errors were encountered: