/// <summary> /// set log level, logger is disabled by default /// </summary> /// <param name="log_level"></param> private static void set_log_level(int log_level) { int res = MLModuleLibrary.set_log_level(log_level); if (res != (int)CustomExitCodes.STATUS_OK) { throw new BrainFlowException(res); } }
/// <summary> /// enable ML logger with level TRACE /// </summary> public static void enable_dev_ml_logger() { MLModuleLibrary.set_log_level((int)LogLevels.LEVEL_TRACE); }
/// <summary> /// disable ML logger /// </summary> public static void disable_ml_logger() { MLModuleLibrary.set_log_level((int)LogLevels.LEVEL_OFF); }
/// <summary> /// enable BrainFlow's logger with level INFO /// </summary> public static void enable_board_logger() { MLModuleLibrary.set_log_level((int)LogLevels.LEVEL_INFO); }