/// <summary> /// 获取指定开关 /// </summary> /// <param name="appId"></param> /// <returns></returns> public static LogOnOff GetLogOnOff(int appId) { LogOnOff logOnOff = GetALLLogOnOff().FirstOrDefault(x => x.AppId == appId); if (logOnOff == null) { return(Default); } return(logOnOff); }
/// <summary> /// 设置指定开关 /// </summary> /// <param name="on_off"></param> public static void SetLogOnOff(LogOnOff on_off) { LogWriterManager.GetLogWriter().SetLogOnOff(on_off); RefreshLogOnOff(); }