logx

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 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 Level

type Level int
const (
	LevelInfo Level = iota
	LevelSuccess
	LevelWarn
	LevelError
)

type Logger

type Logger struct {
	Out        io.Writer
	Err        io.Writer
	ForceColor bool
}

func New

func New(out, err io.Writer) *Logger

func (*Logger) Error

func (l *Logger) Error(msg string)

func (*Logger) Errorf

func (l *Logger) Errorf(format string, args ...any)

func (*Logger) Info

func (l *Logger) Info(msg string)

func (*Logger) Infof

func (l *Logger) Infof(format string, args ...any)

func (*Logger) Success

func (l *Logger) Success(msg string)

func (*Logger) Successf

func (l *Logger) Successf(format string, args ...any)

func (*Logger) Warn

func (l *Logger) Warn(msg string)

func (*Logger) Warnf

func (l *Logger) Warnf(format string, args ...any)

Jump to

Keyboard shortcuts

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