Movatterモバイル変換


[0]ホーム

URL:


wglog

package
v1.92.3Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License:BSD-3-ClauseImports:9Imported by:3

Details

Repository

github.com/tailscale/tailscale

Links

Documentation

Overview

Package wglog contains logging helpers for wireguard-go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeLogger

type Logger struct {DeviceLogger *device.Logger// contains filtered or unexported fields}

A Logger is a wireguard-go log wrapper that cleans up and rewrites log lines.It can be modified at run time to adjust to new wireguard-go configurations.

funcNewLogger

func NewLogger(logflogger.Logf) *Logger

NewLogger creates a new logger for use with wireguard-go.This logger silences repetitive/unhelpful noisy log linesand rewrites peer keys from wireguard-go into Tailscale format.

func (*Logger)SetPeers

func (x *Logger) SetPeers(peers []wgcfg.Peer)

SetPeers adjusts x to rewrite the peer public keys found in peers.SetPeers is safe for concurrent use.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp