public ILogger CreateLogger(string categoryName) { if (rabbitMqEmiter == null) { rabbitMqEmiter = new RabbitMqLoggerEmiter(options); } return(new CriticalLogger(rabbitMqEmiter, options.EmiterName)); }
/// <summary> /// Constructor /// </summary> /// <param name="emiter">RabbitMqEmiter</param> /// <param name="moduleName">The module name</param> public CriticalLogger(RabbitMqLoggerEmiter emiter, string moduleName) { this.moduleName = moduleName; this.rabbitMqEmiter = emiter; }