updated comments
This commit is contained in:
parent
d90e3e4de5
commit
caa2f70fd5
2 changed files with 4 additions and 4 deletions
|
@ -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))
|
||||
|
|
|
@ -18,13 +18,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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue