logger

package
v0.7.0-rc.8 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package logger provides structured logging for the vpn application.

Log file: /var/log/vpn.log (created by the installer; owned by the admin user)

Log format:

[2026-02-21 14:30:05 UTC] [section] message

Sections:

[install]  — installation steps and progress
[verify]   — GPG signature and checksum verification
[config]   — configuration load/save operations
[tui]      — TUI actions (installs, upgrades, service management)
[status]   — dashboard status polling warnings
[system]   — system-level operations (firewall, tor, services)

Index

Constants

View Source
const LogPath = "/var/log/vpn.log"

Variables

This section is empty.

Functions

func Config

func Config(format string, args ...interface{})

func Install

func Install(format string, args ...interface{})

func Log

func Log(section, format string, args ...interface{})

func Status

func Status(format string, args ...interface{})

func System

func System(format string, args ...interface{})

func TUI

func TUI(format string, args ...interface{})

func Verify

func Verify(format string, args ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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