示例#1
0
        /// <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);
            }
        }
示例#2
0
 /// <summary>
 /// enable ML logger with level TRACE
 /// </summary>
 public static void enable_dev_ml_logger()
 {
     MLModuleLibrary.set_log_level((int)LogLevels.LEVEL_TRACE);
 }
示例#3
0
 /// <summary>
 /// disable ML logger
 /// </summary>
 public static void disable_ml_logger()
 {
     MLModuleLibrary.set_log_level((int)LogLevels.LEVEL_OFF);
 }
示例#4
0
 /// <summary>
 /// enable BrainFlow's logger with level INFO
 /// </summary>
 public static void enable_board_logger()
 {
     MLModuleLibrary.set_log_level((int)LogLevels.LEVEL_INFO);
 }