Description
I am thinking about adopting evlog for an AWS Lambda function I have created (SQS consumer), but I have doubts about the best practices I should follow when implementing it. Should I create a global log with createLogger and then import it in the rest of the code as lambda is supposed to have isolated runs between invocations? Or should I pass the logger as parameter with dependency injection? Thanks in advance, great library btw!
Description
I am thinking about adopting evlog for an AWS Lambda function I have created (SQS consumer), but I have doubts about the best practices I should follow when implementing it. Should I create a global log with
createLoggerand then import it in the rest of the code as lambda is supposed to have isolated runs between invocations? Or should I pass the logger as parameter with dependency injection? Thanks in advance, great library btw!