logger

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FullLogger

type FullLogger struct{}

FullLogger logger for stderr (warn) and stdout (info) logging

func (*FullLogger) Info

func (l *FullLogger) Info(format string, a ...any)

Info prints formatted message to stdout

func (*FullLogger) Warn

func (l *FullLogger) Warn(format string, a ...any)

Warn prints formatted message to stderr

type Logger

type Logger interface {
	Info(format string, a ...any)
	Warn(format string, a ...any)
}

Logger Interface used for logging ouput

type TerseLogger

type TerseLogger struct{}

TerseLogger logger that only prints info level lines

func (*TerseLogger) Info

func (l *TerseLogger) Info(format string, a ...any)

Info prints formatted message to stdout

func (*TerseLogger) Warn

func (l *TerseLogger) Warn(format string, a ...any)

Warn is a no-op, it prints nothing

Jump to

Keyboard shortcuts

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