Esempio n. 1
0
        public void UseLoggingTest()
        {
            var moq    = new Mock <IHostBuilder>();
            var result = SeriLogExtensions.UseLogging(moq.Object);

            Assert.IsNotNull(result);
        }
Esempio n. 2
0
        public Startup(IConfiguration configuration)
        {
            Configuration = configuration;
            SeriLogExtensions.ConfigureSeriLog("ERPUI");

            if (!Directory.Exists(Path.Combine(Directory.GetCurrentDirectory(), "Logs")))
            {
                Directory.CreateDirectory(Path.Combine(Directory.GetCurrentDirectory(), "Logs"));
            }
        }