Output JSON in Azure Function Logs
问题 We'd like to send structured log data from our Azure Functions to Event Hub. So I set up Serilog to log to the console and include all the info I wanted. But now I come to try this in Azure, all of my nice Json formatted data from Serilog is being ignored - and only the standard ILogger output is being shown :( Here's the config I'm using in Startup.ConfigureServices . services.AddLogging(loggingBuilder => loggingBuilder.AddSerilog(CreateLogger())); private static Logger CreateLogger() { var