Closed jgraygi closed 1 year ago
Hello, I am facing a similar issue but instead of SQL server I am not able to see the Serilog entries in the Logger Console for Function App. Did you find a solution ?
Hi, sorry we couldn't answer your question here; if you're still looking for information on this, tagging a Stack Overflow post with the serilog
tag will get the right eyes onto it. Hope this helps!
I have created an Azure Function App .NET 3.1. I have added this sink to the application and it works great when I run under the debugger in Visual Studio 2019. Once I publish it to Azure and set all my configurations I don't get any logs in my database. I don't get any errors and the expected logs write to the Application Insights but none get written to my database. Is there something specific I need to do in Azure to make this work?
using AGN.USB.Cryptography; using Microsoft.Azure.Functions.Extensions.DependencyInjection;
[assembly: FunctionsStartup(typeof(Startup))]
namespace AGN.USB.Cryptography { using Logging; using Microsoft.Azure.Functions.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; using Models; using Serilog; using Serilog.Debugging; using Serilog.Events; using Serilog.Sinks.MSSqlServer; using Services; using System; using System.Collections.ObjectModel; using System.Diagnostics;
}