Beispiel #1
0
//FREENECTAPI void freenect_set_log_level(freenect_context *ctx, freenect_loglevel level);
func (ctx *Context) SetLogLevel(level LogLevel) {
	C.freenect_set_log_level(ctx.ptr(), C.freenect_loglevel(level))
}
Beispiel #2
0
// Sets a new log message level to control the verbosity of information coming from libfreenect.
func (freenect *Freenect) LogLevel(level LoggerLevel) {
	C.registerLogCallback(freenect.ctx)
	C.freenect_set_log_level(freenect.ctx, C.freenect_loglevel(level))
}