Wednesday, 11 December 2019

Logging and persisting all requests in Express

So we have an Express API, with an API management layer on top of that. Unfortunately we're kinda tied into it, and their logging/analytics and really quite sparse and shit.We're looking to just roll our own, and save useful data from potentially both request and response (but probably just request for now). What is the best way to do this? Saving to a database would be ideal so we can query and do analysis on the data ourselves without limits.I can't really see a best practice way to do this from my research, apart from with Winston or something, but then their docs don't really have anything to do with external database transports, so that makes me think it's probably not what I think it is.Or failing that, is there an appropriate as-a-service that can do this. nicely with Node/Express?

Submitted December 11, 2019 at 02:34PM by Nefs

No comments:

Post a Comment