Beispiel #1
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddMediatR(typeof(Startup));
            services.AddControllers();
            services.AddSwaggerGen(c =>
            {
                c.SwaggerDoc("v1", new OpenApiInfo {
                    Title = "ProcessManager", Version = "v1"
                });
            });

            LoggerBootstrapper.Initialize();
            IoCBootstrapper.Initialize(services);
        }
 public void SetUp()
 {
     LoggerBootstrapper.Initialize();
     IoCBootstrapper.Initialize();
 }
 public void SetUp()
 {
     LoggerBootstrapper.Initialize();
     IoCBootstrapper.Initialize();
     new Installer().Install(LifeStyleType.Thread);
 }
Beispiel #4
0
        /// <summary>
        /// Logs <paramref name="message"/> at the AUDIT level, a custom log level that is not well-defined in popular logging providers like log4net. This log level should be used only as dictated by the security team to satisfy auditing requirements.
        /// </summary>
        public static void Log(string message)
        {
            var auditLogLevel = LoggerBootstrapper.GetAuditLevel();

            Logger.Logger.Log(typeof(AuditLog), auditLogLevel, message, null);
        }