Reputation: 1326
When I goto "Monitor" page for a function, there is a "Logs" panel. Two issues here
The scrollbar doesn't function - what's with that?
The log is incomplete. Sometimes it'll start mid-word with ".." in front. Why is that?
How can I get the full log? Where is this stored?
Upvotes: 0
Views: 327
Reputation: 8515
Chris from the Functions team here
Our built in Monitoring has a few rough edges that have lasted longer than they should have. To address your specific issues:
We'll have pagination and date filtering next month. You can work around this today by going to your Kudu site (Function App Settings > Go To Kudu) and then under the tools menu, go to the "Web jobs dashbaord" and then clicking on the "Functions" option at the top right. (or .scm.azurewebsites.net/AzureJobs).
The "..." thing is a truncation issue which will be fixed in our next release, which should land later this month. GitHub #1051
Once those are solved, you shouldn't have issues getting the full log.
Where it is stored is in your Storage Account, but when you're using the portal (or you set the fileLoggingMode option in your host.json to always, we log to disk. There's just perf/cost issues there, so we don't do it always. It's accessible, as @4c74356b41 said at
home\LogFiles\Application\Functions\[Host|Functions\{functionname}]
We are working on adding Application Insights integration in the near future which I'd recommend folks look into. We'll have the option of having your traces uploaded there instead. It has a great experience for alerting on those logs/etc. You can do this today if you bring in the App Insights SDK and wrap your code (example here on GitHub), but we'll do this automatically in the near future.
Upvotes: 3