Azure / Azure/azure-functions-host
Consider redirecting console.log to context.log
Open
enhancement
- Dominant language
- C#
- Stars
- 2k
- Forks
- 482
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 37
Description
So used to using console.log, it can be difficult to pick up when we incorrectly use console instead of context. We could possible provide a stubbed console "pseudo global" that redirects calls to context.log.
Contributor guide
Research direction
Start by tracing how console.log and context.log are exposed in the Azure Functions host/runtime. Determine whether a pseudo-global console can safely redirect calls without changing existing behavior, and define tests that verify the redirected logging; done means console logging reaches context.log reliably.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100