Help us shape the future of Go! Take the 2026 Go Developer Survey

logs

package
v0.34.4 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 3 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 wraps slog.Logger with additional functionality

func New

func New(verbose bool) *Logger

New creates a new enhanced logger

func (*Logger) Debug

func (l *Logger) Debug(msg string, args ...any)

Debug logs detailed step information (only in verbose mode)

func (*Logger) Error

func (l *Logger) Error(msg string, args ...any)

Error logs a step message (always visible) in red

func (*Logger) Info

func (l *Logger) Info(msg string, args ...any)

Info logs a step message (always visible) in green

func (*Logger) Warn

func (l *Logger) Warn(msg string, args ...any)

Warn logs a step message (always visible) in orange

Jump to

Keyboard shortcuts

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