Exemple #1
0
        public Startup(IHostingEnvironment env)
        {
            var builder = new ConfigurationBuilder()
                          .SetBasePath(env.ContentRootPath)
                          .AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
                          .AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true)
                          .AddEnvironmentVariables();

            Configuration = builder.Build();

            CustomSerilogConfigurator.Setup("doc-store", false);
        }
Exemple #2
0
 public Startup(IConfiguration configuration)
 {
     Configuration = configuration;
     //public static void Setup(string appName, string appVersion, bool logToFile, string logFilePath = ".\\logs\\", bool renderMessageTemplate = false)
     CustomSerilogConfigurator.Setup("TestApp", "1.4.3", true, "/Users/henryhuangal/Projects/AppLogs/BankingCustomer.txt");//     .Setup("doc-stack-app-api", false);
 }