public static ICloudLogger GetLogger(IServiceEventTracing serviceEventTracing = null, ServiceContext context = null, string sourceName = null)
        {
            sourceName = ResolveSourceName(sourceName);

            if (!Loggers.ContainsKey(sourceName))
            {
                lock (lockSync)
                {
                    if (!Loggers.ContainsKey(sourceName))
                    {
                        var logger = new CloudLogger(serviceEventTracing, context, sourceName);
                        Loggers.Add(sourceName, logger);
                    }
                }
            }
            else if (serviceEventTracing != null && context != null)
            {
                lock (lockSync)
                {
                    if (Loggers.ContainsKey(sourceName))
                    {
                        Loggers[sourceName].SetServiceEventTracing(serviceEventTracing);
                        Loggers[sourceName].SetServiceContext(context);
                    }
                }
            }

            return(Loggers[sourceName]);
        }
        public static ICloudLogger GetLogger(string sourceName = null)
        {
            sourceName = ResolveSourceName(sourceName);

            if (!Loggers.ContainsKey(sourceName))
            {
                lock (lockSync)
                {
                    if (!Loggers.ContainsKey(sourceName))
                    {
                        var logger = new CloudLogger(sourceName);
                        Loggers.Add(sourceName, logger);
                    }
                }
            }

            return(Loggers[sourceName]);
        }