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
Essentially I would like a more ideal way for logging routes. Because right now I'm just calling a logging function for every route I create, not a big deal but its a little tedious...
Perhaps something like this: jcon::JsonRpcServer* rpc_server; rpc_server = new jcon::JsonRpcWebSocketServer(parent); rpc_server->registerLogger([](...) { // this gets called before every route
});`
(Assuming something similar to this functionality doesn't already exist. lol)
And as for what I mean by middleware routes, something very similar to 'Node JS Express Middleware.' Not too sure how this could be implemented here. But it would be very neat.
Is their a safe/easy way to go about making logging/middle-ware routes?
P.S great library! We're about to use it in a production setting
The text was updated successfully, but these errors were encountered: