tailscale.comtailscale.com/util/syspolicy/internal/loggerx Index | Files

package loggerx

import "tailscale.com/util/syspolicy/internal/loggerx"

Package loggerx provides logging functions to the rest of the syspolicy packages.

Index

Functions

func Errorf

func Errorf(format string, args ...any)

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

func SetForTest(tb testenv.TB, printf, verbosef logger.Logf)

SetForTest sets the specified printf and verbosef functions for the duration of tb and its subtests.

func Verbosef

func Verbosef(format string, args ...any)

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.