logging

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fatal added in v0.37.0

func Fatal(msg string, args ...any)

Fatal logs an error message and exits the program with code 1. It uses slog.Error internally and then calls os.Exit(1). This provides backward compatibility with log.Fatal behavior.

func Fatalf added in v0.37.0

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

Fatalf logs a formatted error message and exits the program with code 1. It uses slog.Error internally and then calls os.Exit(1). This provides backward compatibility with log.Fatalf behavior.

func Init

func Init()

Init initializes slog using environment variables: - GNSSTOOLS_LOG_FORMAT: "text" (default) or "json" - GNSSTOOLS_LOG_LEVEL: "debug", "info" (default), "warn", "error" - GNSSTOOLS_LOG_SOURCE: "true" to include source information

Types

This section is empty.

Jump to

Keyboard shortcuts

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