示例#1
0
        public ILogger CreateLogger(string categoryName)
        {
            if (rabbitMqEmiter == null)
            {
                rabbitMqEmiter = new RabbitMqLoggerEmiter(options);
            }

            return(new CriticalLogger(rabbitMqEmiter, options.EmiterName));
        }
示例#2
0
 /// <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;
 }