Beispiel #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();
        }
Beispiel #2
0
        private static void RegisterLogging(ContainerBuilder builder)
        {
            var logConfig = LogConfigBuilder.Build();

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