コード例 #1
0
        private static void LogConfig()
        {
            var environment   = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT");
            var configuration = AddConfigurationSettings(new ConfigurationBuilder())
                                .Build();
            var log = new LogConfigBuilder(configuration, environment);

            log.Build();
        }
コード例 #2
0
        private static void RegisterLogging(ContainerBuilder builder)
        {
            var logConfig = LogConfigBuilder.Build();

            builder.RegisterModule(new LoggingModule(logConfig));
        }