nfroidure / whook

Build strong and efficient REST web services.
https://slides.com/nfroidure/introducing-whook
MIT License
31 stars 7 forks source link

Better log management for AWS Lambda #159

Closed nfroidure closed 1 year ago

nfroidure commented 1 year ago

It would be better to have a log dispatch in the different desitnations AWS lambda provuides and eventually add an env var that allow to debug on the fly https://github.com/nfroidure/whook/blob/master/packages/whook-aws-lambda/src/services/log.ts#LL4C30-L4C70

nfroidure commented 1 year ago

Probably not a thing since one can just remove the log service provided with @whook/aws-lamba here and the logger provided by whook will be run instead : https://github.com/nfroidure/whook/blob/main/packages/whook/src/services/logger.ts#L12-L22

Anyway, it is always possible to provide you own log service and add it to build initializer paths to override the default one.

Finally, one can also provide it own routing logic with configuration only by setting up the LOG_ROUTING configuration to override the default one: https://github.com/nfroidure/common-services/blob/main/src/log.ts#L34-L44