azure-func-http icon indicating copy to clipboard operation
azure-func-http copied to clipboard

Documentation lacking around using context object to build custom logger module

Open MrStLouis opened this issue 4 years ago • 1 comments

I'm submitting a...


[ ] Regression 
[ ] Bug report
[ ] Feature request
[X] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

No documentation surrounding use of azure context which is greatly needed for setting up logging for azure functions

Expected behavior

Would love to see an example LoggerModule that can be used locally (default to console.log) or with azure func context (context.log)

What is the motivation / use case for changing the behavior?

Documentation surrounding this repository is very minimal, and outdated

MrStLouis avatar Dec 02 '20 02:12 MrStLouis

I support the request. Hard to find how to get to azure context across the nestjs app. I know it can be obtained from @Req -> req.context but can it be provided by some context provider in modules definition?

xro avatar Aug 25 '21 07:08 xro