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

Interface QmlLogger

log.go:44–48  ·  view source on GitHub ↗

The QmlLogger interface may be implemented to better control how log messages from the qml package are handled. Values that implement either StdLogger or QmlLogger may be provided to the SetLogger function.

Source from the content-addressed store, hash-verified

42// implement either StdLogger or QmlLogger may be provided to the
43// SetLogger function.
44type QmlLogger interface {
45 // QmlOutput is called whenever a new message is available for logging.
46 // The message value must not be used after the method returns.
47 QmlOutput(message LogMessage) error
48}
49
50// The StdLogger interface is implemented by standard *log.Logger values.
51// Values that implement either StdLogger or QmlLogger may be provided

Callers 1

hookLogHandlerFunction · 0.65

Implementers 2

Calls

no outgoing calls

Tested by

no test coverage detected