예제 #1
0
 public static void CouldNotOpenSocket(global::Microsoft.Extensions.Logging.ILogger logger, string hostName)
 {
     if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
     {
         __CouldNotOpenSocketCallback(logger, hostName, null);
     }
 }
예제 #2
0
 public static void FourArgumentsLog(global::Microsoft.Extensions.Logging.ILogger logger, string hostName, DateTime now, decimal amount, bool flag)
 {
     if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
     {
         _FourArgumentsCallback(logger, hostName, now, amount, flag, null);
     }
 }
예제 #3
0
        public MicrosoftLogger(global::Microsoft.Extensions.Logging.ILogger logger)
        {
            _logger = logger;

            for (int i = 0; i < _levelsList.Length; i++)
            {
                if (_logger.IsEnabled(_levelsList[i]))
                {
                    LogLevel = Convert(_levelsList[i]);
                    break;
                }
            }
        }