logging

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

func Debug

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

Debug logs a debug message

func Error

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

Error logs an error message

func GetLogger

func GetLogger() *slog.Logger

GetLogger returns the configured logger instance

func Info

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

Info logs an info message

func Init

func Init()

Init initializes the global logger based on environment variables BACKLOG_LOG_FILE: path to log file (optional, defaults to stderr) BACKLOG_LOG_LEVEL: log level (debug, info, warn, error, defaults to info) BACKLOG_LOG_FORMAT: format (json, text, defaults to text)

func Warn

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

Warn logs a warning message

Types

This section is empty.

Jump to

Keyboard shortcuts

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