Esempio n. 1
0
        private void Sbc_Log(object sender, string message, ServiceBusConnectorLogLevel level)
        {
            switch (level)
            {
            case ServiceBusConnectorLogLevel.Error:
                logger.Error(sender.ToString() + message.ToString());
                break;

            case ServiceBusConnectorLogLevel.Info:
                logger.Info(sender.ToString() + message.ToString());
                break;

            case ServiceBusConnectorLogLevel.Trace:
                logger.Trace(sender.ToString() + message.ToString());
                break;

            default:
                logger.Trace(sender.ToString() + message.ToString());
                break;
            }
        }
Esempio n. 2
0
 private void Sbc_Log(object sender, string message, ServiceBusConnectorLogLevel level)
 {
     Console.WriteLine(message);
 }
Esempio n. 3
0
 private void Sbc_Log(object sender, string message, ServiceBusConnectorLogLevel level)
 {
     Console.WriteLine($"Log {level.ToString()} message: {message}");
 }
Esempio n. 4
0
 private void LogMessage(ServiceBusConnectorLogLevel level, string message = "", [CallerMemberName] string method = "")
 {
     Log?.Invoke(this, $"{method}() -> {message ?? ""}", level);
 }