logging

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

Logger provides structured JSON logging

func New

func New() *Logger

New creates a new structured logger

func (*Logger) Error

func (l *Logger) Error(msg string, fields map[string]any)

Error logs an error-level message with optional fields

func (*Logger) Info

func (l *Logger) Info(msg string, fields map[string]any)

Info logs an info-level message with optional fields

func (*Logger) Warn

func (l *Logger) Warn(msg string, fields map[string]any)

Warn logs a warning-level message with optional fields

Jump to

Keyboard shortcuts

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