serilog-contrib / serilog-sinks-applicationinsights

A Serilog sink that writes events to Microsoft Azure Application Insights
Apache License 2.0
220 stars 72 forks source link

Unable to write traces in application insight using asp.net console application #135

Closed pushkarDO closed 2 years ago

pushkarDO commented 4 years ago

I am trying to write log traces in application insights in .net console application not .net core. I am using serilog for this. But unable to do so. Below is the log code I am using. Please provide me the solution.

public static class Log { private static Serilog.Core.Logger _log; static Log() {

            _log = new LoggerConfiguration()
           .MinimumLevel.Verbose().WriteTo.ApplicationInsights(Instrumentaton_Key, TelemetryConverter.Traces)
           .CreateLogger();
    }

    public static void Info(string messageTemplate)
    {
        _log.Information(messageTemplate);
    }
nblumhardt commented 2 years ago

Hi! 👋 Thanks for getting in touch, and sorry we were unable to respond to your request. We're in the process of bringing new maintainers onto this project, and need to close stale tickets so that we can identify which items are still important to users of the sink.

If this issue still affects you:

Thanks again!