sofcatlog

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: Apache-2.0 Imports: 10 Imported by: ? 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close releases the active log file writer and resets logging state.

func NewLog

func NewLog(cfg config.Configuration) error

NewLog builds the fan-out logger: a text console sink plus, unless checkonly is active, a rotated file sink (structured JSON by default, plain text when cfg.LogFilePlain). The result is installed as slog's default logger.

func SetOutput

func SetOutput(w io.Writer)

SetOutput redirects the console sink; intended for tests. It takes effect on the next NewLog call.

Types

This section is empty.

Jump to

Keyboard shortcuts

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