log

package
v0.0.0-...-b6cb40f Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debug(format string, args ...any)

	Info(format string, args ...any)

	Warn(format string, args ...any)

	Error(format string, args ...any)

	Fatal(format string, args ...any)

	Panic(format string, atgs ...any)

	Close() error
}

func New

func New() (Logger, error)

type Zap

type Zap struct {
	*zap.SugaredLogger
}

func (*Zap) Close

func (z *Zap) Close() error

func (*Zap) Debug

func (z *Zap) Debug(format string, args ...any)

func (*Zap) Error

func (z *Zap) Error(format string, args ...any)

func (*Zap) Fatal

func (z *Zap) Fatal(format string, args ...any)

func (*Zap) Info

func (z *Zap) Info(format string, args ...any)

func (*Zap) Panic

func (z *Zap) Panic(format string, args ...any)

func (*Zap) Warn

func (z *Zap) Warn(formar string, args ...any)

Jump to

Keyboard shortcuts

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