logger

package module
v0.0.0-...-8f9ff1b Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDebug

func SetDebug()

func SetError

func SetError()

func SetOutput

func SetOutput(out io.Writer)

Types

type Logger

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

func New

func New(name string) Logger

func NewWithFields

func NewWithFields(fields logrus.Fields) 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

func (l *Logger) IsDebug() bool

func (*Logger) Tracef

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

func (*Logger) Warnf

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