Back to Feathers

Error logging hook

docs/guides/cli/log-error.md

5.0.44351 B
Original Source

Error logging hook

The src/hooks/log-error.ts file exports a logError hook that uses the logger to log any error for a service method, including validation error details (when they are available). It is registered as an application hook all hook, meaning it will log errors for any service method.