log

package module
v0.0.0-...-e0ea269 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: LGPL-2.1 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(args ...interface{})

func Errorf

func Errorf(template string, args ...interface{})

func Info

func Info(args ...interface{})

func Infof

func Infof(template string, args ...interface{})

func Init

func Init(name string, opts ...OptionFunc) (*zap.SugaredLogger, error)

func Logger

func Logger() *zap.SugaredLogger

func Panic

func Panic(args ...interface{})

func Panicf

func Panicf(template string, args ...interface{})

func Warn

func Warn(args ...interface{})

func Warnf

func Warnf(template string, args ...interface{})

func Writer

func Writer() io.Writer

Types

type OptionFunc

type OptionFunc func(*Options)

func Feishu

func Feishu(token string) OptionFunc

type Options

type Options struct {
	Name string
}

type Wrap

type Wrap struct {
	*zap.SugaredLogger
}

func With

func With(args ...interface{}) *Wrap

func (*Wrap) Error

func (p *Wrap) Error(args ...interface{})

func (*Wrap) Errorf

func (p *Wrap) Errorf(template string, args ...interface{})

func (*Wrap) Info

func (p *Wrap) Info(args ...interface{})

func (*Wrap) Infof

func (p *Wrap) Infof(template string, args ...interface{})

func (*Wrap) Panic

func (p *Wrap) Panic(args ...interface{})

func (*Wrap) Panicf

func (p *Wrap) Panicf(template string, args ...interface{})

func (*Wrap) Warn

func (p *Wrap) Warn(args ...interface{})

func (*Wrap) Warnf

func (p *Wrap) Warnf(template string, args ...interface{})

func (*Wrap) With

func (p *Wrap) With(args ...interface{}) *Wrap

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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