/// <summary> /// Set the value of the CrestronLogger.PrintTheLog to true or false. /// </summary> /// <param name="val"> val = 0 equal false , val = 1 equals true</param> public void Log(ushort val) { bool printTheLog = val == 0 ? false : true; CrestronLogger.PrintTheLog(printTheLog); if (!printTheLog) { CrestronLogger.ShutdownLogger(); } else if (!CrestronLogger.LoggerInitialized) { CrestronLogger.Initialize(10); CrestronLogger.LogOnlyCurrentDebugLevel = false; } }