ASP.NET Core trace logging on Azure with Application Insights -


i have asp.net core web project deployed azure application insights configured. insights receiving data fine requests etc. unable display logs.

i using vanilla microsoft.extensions.logging framework , have test error being logged on controller action as

logger.logerror("test application insights message"); 

in startup.cs configure method have set

loggerfactory.addazurewebappdiagnostics(); 

... , can see error message appear in azure logs streaming:

2017-04-14 11:06:00.313 +00:00 [error] test application insights message 

however, want message appear in application insights trace found. think need configure iloggerfactory not sure how , can't find docs on subject.

thanks in advance help

case else trying resolve this, got results wanted following:

loggerfactory.addapplicationinsights(app.applicationservices); 

Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -