mvl

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDebug

func SetDebug()

func SetError

func SetError()

func SetOutput added in v0.6.0

func SetOutput(out io.Writer)

func SetSimpleFormat

func SetSimpleFormat(trunc bool)

Types

type Logger

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

func New

func New(name string) Logger

func Package

func Package() Logger

func (*Logger) Debugf

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

func (*Logger) Errorf

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

func (*Logger) Fatalf

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

func (*Logger) Fields

func (l *Logger) Fields(kv ...any) *Logger

func (*Logger) FieldsMap

func (l *Logger) FieldsMap(kv map[string]any) *Logger

func (*Logger) Infof

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

func (*Logger) IsDebug added in v0.2.0

func (l *Logger) IsDebug() bool

func (*Logger) Tracef

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

func (*Logger) Warnf added in v0.5.0

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

Jump to

Keyboard shortcuts

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