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

How to use ILogger for AppInsights logs with azure batch #294

Open
Sandeep321 opened this issue Nov 30, 2020 · 0 comments
Open

How to use ILogger for AppInsights logs with azure batch #294

Sandeep321 opened this issue Nov 30, 2020 · 0 comments

Comments

@Sandeep321
Copy link

Sandeep321 commented Nov 30, 2020

I have seen the azure batch sample HERE using appinsights to capture and monitor logs. This uses the TelemetryClient directly to capture the logs. That is well and good.
Below is our case:
We have already configured and are using appinsights in our App services. We are using "Microsoft.Extensions.Logging.ILogger" to do the logging to appinsights. Now, in azure batch also, we would want to use the code that is doing the logging using ILogger. So, the question is, how do we use ILogger instead of TelemetryClient directly to capture logs from the azure batch.

I am talking about the .Net version of it.

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

No branches or pull requests

1 participant