Express-graphql: Error logging

Created on 27 Feb 2017  路  3Comments  路  Source: graphql/express-graphql

I don't see any direct way to hook this up to an error logger.
The formatError isn't really what I am looking as I cant connect the error to a request that way.
I am thinking this must be an oversight on my part, as surely if one is running this in production, you would want to log errors. But I cant find any documentations or guides how todo this.

Most helpful comment

All 3 comments

If the errors array has multiple items the solution with formatError will create multiple log entries for the same request. This is not desirable for log analytics.

Is there any better solution to this?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dhurlburtusa picture dhurlburtusa  路  4Comments

KieronWiltshire picture KieronWiltshire  路  3Comments

naivefun picture naivefun  路  3Comments

justinmchase picture justinmchase  路  4Comments

m-diiorio picture m-diiorio  路  4Comments