/// <summary> /// 创建日志服务管理对象 /// </summary> /// <param name="endpoint">终结点</param> /// <param name="secretId">APPID</param> /// <param name="secretKey">APPKEY</param> public ClsClient(string endpoint, string secretId, string secretKey) { BaseAddress = endpoint; //创建签名器实例 sign = new Sign(secretId, secretKey); Client = this; }
public ILogger CreateLogger(string categoryName) { _ = new ClsClient(settings.Endpoint, settings.SecretId, settings.SecretKey); return(_loggers.GetOrAdd(categoryName, name => new CLSLogger(categoryName, settings, _scopeProvider))); }