Open Fishrock123 opened 3 years ago
Hi @Fishrock123..Are you able to figure out how to do logging in Rust Custom Handler function. I am also facing the same issue, where logs are working fine in local VS code but after deployment I cannot see them in the panel. Using env_logger/log.
@horizondeep see the code in https://github.com/squamishaccess/squamishaccess-functions/tree/main/src/azure_function
I have the same issue with golang
Hi, I'm using a custom handler so I write a function in Rust: https://github.com/squamishaccess/squamishaccess-signup-function-rs
My main blocker right now is figuring out how to log properly. Logging to the stdio only seems to show up in a local (VS Code) log stream, and not in the function monitor panel log stream. Ideally I'd like to make log traces to the "invocations" panel, I'm unsure if that is scraped from file system logs or Application Insights.
Additionally, it doesn't seem to parse JSON logs. Here is an example:
The lines that say
... [Information] {"level":30, ...
are from my json logger.