logger

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package logger provides logging utilities for auto-mr using the bullets library.

It wraps bullets.Logger with convenience constructors for creating loggers at various levels and a silent logger for use in tests or when no output is desired.

Usage:

log := logger.NewLogger("debug")
log.Debug("Starting operation")

silentLog := logger.NoLogger() // Suppresses all output

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(logLevel string) *bullets.Logger

NewLogger creates a new logger that writes to stdout at the specified level.

Parameters:

  • logLevel: one of "debug", "info", "warn", "error" (defaults to "info" for unknown values)

func NoLogger

func NoLogger() *bullets.Logger

NoLogger creates a logger that suppresses all output by setting the level to Fatal. Useful for tests and silent operation.

Types

type Logger

type Logger interface {
	Debug(msg string, args ...any)
	Info(msg string, args ...any)
	Warn(msg string, args ...any)
	Error(msg string, args ...any)
}

Logger is the interface for logging in auto-mr.

Jump to

Keyboard shortcuts

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