log

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package log provides a small abstraction around slog to make it easier to use.

Index

Constants

This section is empty.

Variables

View Source
var (
	Int    = slog.Int
	String = slog.String
	Bool   = slog.Bool
)

Functions

func Debug

func Debug(ctx context.Context, message string, attrs ...slog.Attr)

Debug logs a message with debug level

func Error

func Error(ctx context.Context, message string, attrs ...slog.Attr)

Error logs a message with error level

func Info

func Info(ctx context.Context, message string, attrs ...slog.Attr)

Info logs a message with info level

Types

This section is empty.

Jump to

Keyboard shortcuts

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