core
core copied to clipboard
Add logging hooks
Logging should be left to the preferences of the integrator. SakuraApi should provide hooks that the integrator can integrate with his or her own logging system of choice.
https://blog.risingstack.com/node-js-logging-tutorial/
After thinking about this for a bit, it seems like the need is limited to https://github.com/sakuraapi/api/blob/develop/src/handlers/basic-handlers.ts.
Other parts of the application will throw or reject and the error bubbles up to the integrator's code.
I'm going to bump this out of a milestone and think about it later. If anyone has any ideas here, please comment.