Skip to main content
.NETStandard2.0

This package adds Application Insights based logging capabilities to the WebJobs SDK. For more information, please visit https://go.microsoft.com/fwlink/?linkid=2279708.

Published
May 12, 2026
5mo ago
Total Downloads
17.5M
17,479,210

Install

dotnet add package Microsoft.Azure.WebJobs.Logging.ApplicationInsights --version 3.0.46
ProductVersions
.NET Standard
netstandard2.0

README

Microsoft.Azure.WebJobs.Logging.ApplicationInsights

This package adds Application Insights based logging capabilities to the WebJobs SDK. For more information, please visit https://go.microsoft.com/fwlink/?linkid=2279708.

Commonly used types

  • ApplicationInsightsLoggingBuilderExtensions
  • ApplicationInsightsLoggerProvider
  • ApplicationInsightsLoggerOptions

Example usage

The below example demonstrates configuration of ApplicationInsights logging on host startup via the AddApplicationInsightsWebJobs builder method.

using System.Threading.Tasks;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;

class Program
{
    public static async Task Main(string[] args)
    {
        var builder = Host.CreateDefaultBuilder(args)
            .ConfigureWebJobs(b =>
            {
                b.AddAzureStorageCoreServices();
                b.AddAzureStorageQueues();
            })
            .ConfigureLogging((context, b) =>
            {
                // If this key exists in any config, use it to enable App Insights
                string appInsightsKey = context.Configuration["APPINSIGHTS_INSTRUMENTATIONKEY"];
                if (!string.IsNullOrEmpty(appInsightsKey))
                {
                    b.AddApplicationInsightsWebJobs(o => o.InstrumentationKey = appInsightsKey);
                }
            });

        using var host = builder.Build();
        await host.RunAsync();
    }
}

Changes from Previous Version

No structural changes between v3.0.45 and v3.0.46.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.