We have started a new small internal project for automating a few workflows around counting worked hours and time offs. The application is a slack bot on top of node js, TypeScript and PostgreSQL database. We use 3rd party APIs to fetch data about the times which we need to accumulate and process to calculate valuable information to our users.
We strongly recommend using a logging library such as Winston (commonly used in node.js programs). Libraries should provide an easy way to choose a transport which will be used as on output for logs.
Having good error handling practice is very important when building complex applications. Applications which consist of multiple applications such as web applications,