Documentation
¶
Overview ¶
Package logger defines a type for writing to logs. It's just a convenience type so that we don't have to pass verbose func(...) types around.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Discard ¶ added in v0.98.0
func Discard(string, ...interface{})
Discard is a Logf that throws away the logs given to it.
func FuncWriter ¶
FuncWriter returns an io.Writer that writes to f.
Types ¶
type Logf ¶
type Logf func(format string, args ...interface{})
Logf is the basic Tailscale logger type: a printf-like func. Like log.Printf, the format need not end in a newline.
func WithPrefix ¶
WithPrefix wraps f, prefixing each format with the provided prefix.
Click to show internal directories.
Click to hide internal directories.