janeirodigital / sai-js

Typescript library for Solid Application Interoperability
https://sai.js.org/
MIT License
8 stars 7 forks source link

Improve request logging in the service #65

Open angelaraya opened 1 year ago

angelaraya commented 1 year ago

Current logs provide unnecessary and repeated information by default, there should be a way to only receive explicitly requested logs. For starters we could reduce logs to only print when hitting /api, since it's our main endpoint.

elf-pavlik commented 1 year ago

For a quick tweak, we can adjust how verbose the logger is in https://github.com/janeirodigital/sai-impl-service/blob/main/packages/service/src/componentsMain.ts#L9

levels are described in: https://github.com/digita-ai/handlersjs/blob/main/packages/handlersjs-logging/lib/models/logger-level.ts