package loggerx
import "tailscale.com/util/syspolicy/internal/loggerx"
Package loggerx provides logging functions to the rest of the syspolicy packages.
Index ¶
- func Errorf(format string, args ...any)
- func SetDebugLoggingEnabled(v bool)
- func SetForTest(tb testenv.TB, printf, verbosef logger.Logf)
- func Verbosef(format string, args ...any)
Functions ¶
func Errorf ¶
Errorf formats and writes an error message to the log.
func SetDebugLoggingEnabled ¶
func SetDebugLoggingEnabled(v bool)
SetDebugLoggingEnabled controls whether spammy debug logging is enabled.
func SetForTest ¶
SetForTest sets the specified printf and verbosef functions for the duration of tb and its subtests.
func Verbosef ¶
Verbosef formats and writes an optional, verbose message to the log.
Source Files ¶
logger.go
- Version
- v1.84.0 (latest)
- Published
- May 21, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 1 hour ago –
Tools for package owners.