예제 #1
0
        /// <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);
        }
예제 #2
0
 /// <summary>
 /// 设置指定开关
 /// </summary>
 /// <param name="on_off"></param>
 public static void SetLogOnOff(LogOnOff on_off)
 {
     LogWriterManager.GetLogWriter().SetLogOnOff(on_off);
     RefreshLogOnOff();
 }