New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
console.log in Node.js Azure Function does not output anywhere #1396
Comments
Aside the context, I believe you can instrument Application insights or some other 3rd party logging tools to to that. I personally use sentry. |
You'll probably want to use |
This is possible with something like this @wpitallo https://github.com/BrianRosamilia/azure-function-log-intercept/blob/master/index.js If you're feeling adventurous you can try out the npm package I made to fix this https://www.npmjs.com/package/azure-function-log-intercept It was frustrating my team as well. |
+100 |
Types for small Azure Functions helper: https://github.com/BrianRosamilia/azure-function-log-intercept Azure/Azure-Functions#1396 Thanks!
Types for small Azure Functions helper: https://github.com/BrianRosamilia/azure-function-log-intercept Azure/Azure-Functions#1396 Thanks!
Types for small Azure Functions helper: https://github.com/BrianRosamilia/azure-function-log-intercept Azure/Azure-Functions#1396 Thanks!
Hi all, thanks @BrianRosamilia for the interceptor. It served me well for the past 12 months :) , however recently I've migrated the functions from V3 to V4. I rewrote the log intercepter to use the new @azure/functions type like so:
It passes the tests. But when I use it, I get:
I guess my question is, was there any fundamental changing to the logging between V3 and V4? I'm not a huge fan of feeding the context through all of my functions if I can avoid it. Thanks |
@nicholasdavidbrown Pretty slick code. Everyone using my library gets spammed by that and I don't think it actually changed between v3 and v4 as I've seen that message for years now. Someone made a I thought about overriding |
How do we get console.log in a Node.js Azure function. I have been looking everywhere and cant seem to find out how to do this anywhere. I get that you can use context.log. But what if we need to log from dependencies etc. I really find it hard to believe that that console.log does not show up anywhere in a node.js azure function. Its a real deal breaker...
The text was updated successfully, but these errors were encountered: