Help us shape the future of Go! Take the 2026 Go Developer Survey

logging

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(jsonOutput bool)

Init initializes the default slog logger. If jsonOutput is true, uses JSON handler; otherwise uses text handler.

func InitTo

func InitTo(w io.Writer, jsonOutput bool)

InitTo initializes slog to a specific writer. Tests use this to generate fixtures through the same producer path that the shipped process uses.

func TSNetUserLogf

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

TSNetUserLogf routes tsnet's user-facing messages through TSLink's logger. In particular, this keeps interactive authentication URLs out of the timestamped stdlib logger that tsnet falls back to when Server.UserLogf is nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL