MCPcopy
hub / github.com/go-qml/qml / hookLogHandler

Function hookLogHandler

log.go:98–107  ·  view source on GitHub ↗

export hookLogHandler

(cmsg *C.LogMessage)

Source from the content-addressed store, hash-verified

96
97//export hookLogHandler
98func hookLogHandler(cmsg *C.LogMessage) {
99 // Workarund for QTBUG-35943
100 text := unsafeString(cmsg.text, cmsg.textLen)
101 if strings.HasPrefix(text, `"Qt Warning: Compose file:`) {
102 return
103 }
104 msg := logMessage{c: cmsg}
105 logHandler.QmlOutput(&msg)
106 msg.invalid = true
107}
108
109type wrappedStdLogger struct {
110 StdLogger

Callers

nothing calls this directly

Calls 2

unsafeStringFunction · 0.85
QmlOutputMethod · 0.65

Tested by

no test coverage detected