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 ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.