Beispiel #1
0
 /// <summary>
 /// 注册系统日志的类型
 /// </summary>
 /// <param name="TypeConfigKey"></param>
 /// <param name="SqlConnectstring"></param>
 /// <param name="LogTableName"></param>
 /// <param name="dbType"></param>
 /// <returns></returns>
 public IAppRegister RegDbLogger(string TypeConfigKey, string SqlConnectstring, string LogTableName, DbDriverType dbType = DbDriverType.SQLServer)
 {
     Loger.RegisLogger(LibHelper.GetAppSetting(TypeConfigKey), SqlConnectstring, LogTableName, dbType);
     return(this);
 }
Beispiel #2
0
 /// <summary>
 /// 注册系统日志的类型
 /// </summary>
 /// <param name="TypeConfigKey"></param>
 /// <param name="LogPath"></param>
 /// <returns></returns>
 public IAppRegister RegLogger(string TypeConfigKey, string LogPath)
 {
     Loger.RegisLogger(LibHelper.GetAppSetting(TypeConfigKey), LogPath);
     return(this);
 }