Beispiel #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);
            }
        }
Beispiel #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);
 }
Beispiel #3
0
 /// <summary>
 /// disable ML logger
 /// </summary>
 public static void disable_ml_logger()
 {
     MLModuleLibrary.set_log_level((int)LogLevels.LEVEL_OFF);
 }
Beispiel #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);
 }