git » gofer » next » tree

[next] / nettrace / log.go

1
2
3
4
5
6
package nettrace

// To allow users to log the trace data, we provide a simple logging interface.
// This is global and not lock-protected, so if used, it must be set before any
// tracing is done.
var Log func(family, title, id, msg string, err bool) = nil