Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time
22 lines (19 sloc) 820 Bytes
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using Microsoft.Extensions.Configuration;
namespace Microsoft.Extensions.Logging.AzureAppServices
internal class SiteConfigurationProvider
public static IConfiguration GetAzureLoggingConfiguration(IWebAppContext context)
var settingsFolder = Path.Combine(context.HomeFolder, "site", "diagnostics");
var settingsFile = Path.Combine(settingsFolder, "settings.json");
return new ConfigurationBuilder()
.AddJsonFile(settingsFile, optional: true, reloadOnChange: true)