updated comments

This commit is contained in:
worldwalker2000 2023-08-18 10:03:04 -07:00
parent d90e3e4de5
commit caa2f70fd5
2 changed files with 4 additions and 4 deletions

View file

@ -19,13 +19,13 @@ import (
"unsafe"
)
// Set the current threshold (minimum) log level
// SetTraceLogLevel - Set the current threshold (minimum) log level
func SetTraceLogLevel(logLevel TraceLogLevel) {
clogLevel := (C.int)(logLevel)
C.SetTraceLogLevel(clogLevel)
}
// Show trace log messages (LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERROR...)
// TraceLog - Show trace log messages (LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERROR...)
func TraceLog(logLevel TraceLogLevel, text string, v ...interface{}) {
ctext := C.CString(fmt.Sprintf(text, v...))
defer C.free(unsafe.Pointer(ctext))