logger

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package logger provides structured logging for TapeDeck using Go's log/slog.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

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

Debug logs a debug message with optional key-value pairs

func Error

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

Error logs an error message with optional key-value pairs

func Get

func Get() *slog.Logger

Get returns the global logger instance

func Info

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

Info logs an info message with optional key-value pairs

func Init

func Init(level string, writers ...io.Writer)

Init initializes the global logger with the specified level and writers

func Warn

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

Warn logs a warning message with optional key-value pairs

Types

This section is empty.

Jump to

Keyboard shortcuts

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