Skip to content
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

ILogger.LogMetric? #14386

Closed
ThomasWeiss opened this issue Sep 2, 2018 — with docs.microsoft.com · 2 comments
Closed

ILogger.LogMetric? #14386

ThomasWeiss opened this issue Sep 2, 2018 — with docs.microsoft.com · 2 comments

Comments

Copy link
Contributor

In the section "Write logs in C# functions > Logging custom metrics", it is mentioned that we can use the LogMetric extension method to ILogger in order to track custom metrics, but I can't seem to find this method. Is it defined in a separate assembly?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@ThomasWeiss ThomasWeiss changed the title ILgger.LogMetric? ILogger.LogMetric? Sep 2, 2018
@ThomasWeiss
Copy link
Contributor Author

OK I realized that it's defined in Microsoft.Azure.WebJobs.Host, which explains why it's available in my Functions project but not in my other library projects.

@Mike-Ubezzi-MSFT
Copy link
Contributor

@ThomasWeiss Thank you for updating this issue with the resolution. If you need further assistance, feel free to reopen this and we can continue the dialogue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants