package
5.0.0+incompatible
Repository: https://github.com/qwenode/tailscale.git
Documentation: pkg.go.dev

# Functions

Ctx constructs a Context from ctx with fn as its custom log function.
Discard is a Logf that throws away the logs given to it.
Filtered returns a Logf that silently swallows some log lines.
FromContext extracts a log function from ctx.
FuncWriter returns an io.Writer that writes to f.
LogfCloser wraps logf to create a logger that can be closed.
LogOnChange logs a given line only if line != lastLine, or if maxInterval has passed since the last time this identical line was logged.
RateLimitedFn is a wrapper for RateLimitedFnWithClock that includes the current time automatically.
RateLimitedFnWithClock returns a rate-limiting Logf wrapping the given logf.
RusagePrefixLog returns a Logf func wrapping the provided logf func that adds a prefixed log message to each line with the current binary memory usage and max RSS.
StdLogger returns a standard library logger from a Logf.
WithPrefix wraps f, prefixing each format with the provided prefix.

# Type aliases

ArgWriter is a fmt.Formatter that can be passed to any Logf func to efficiently write to a %v argument without allocations.
A Context is a context.Context that should contain a custom log function, obtainable from FromContext.
Logf is the basic Tailscale logger type: a printf-like func.