Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 352 Bytes

log-error.md

File metadata and controls

3 lines (2 loc) · 352 Bytes

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.