dbg

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package dbg provides a simple file-based debug logger for aps. All functions are nil-safe no-ops when the logger has not been initialised.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close flushes and closes the underlying file. Safe to call when not opened.

func Log

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

Log writes a formatted line. No-op when logger is nil.

func Open

func Open(path string) error

Open opens path for append-write and installs the package-level logger. Caller must call Close before the process exits.

func Writer

func Writer() io.Writer

Writer returns the underlying io.Writer, or io.Discard if not opened.

Types

This section is empty.

Jump to

Keyboard shortcuts

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