public Logger CreateLogger(string name)
        {
            var loggerName  = _path.GetFileNameFrom(name);
            var accountName = _path.GetAccountNameFrom(name);
            var profileName = _path.GetProfileNameFrom(name);

            if (ActivityLoggerRegistry.IsKnownLogger(loggerName) && !string.IsNullOrEmpty(accountName) && !string.IsNullOrEmpty(profileName))
            {
                var baseLogger = LoggerManager.GetLogger(Assembly.GetCallingAssembly(), loggerName) as Logger;
                if (baseLogger != null)
                {
                    return(GetLoggerFrom(baseLogger, name, accountName, profileName));
                }
            }

            return(_factory.CreateLogger(name));
        }
 public ILog GetLogger(string name)
 {
     return(ActivityLoggerRegistry.IsKnownLogger(name)
                                 ? GetLogger(_path, name, _context)
                         : LogManager.GetLogger(name));
 }