zaplog

package
v0.0.0-...-fc3a37d Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

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

func New

func New(opts ...conf.Option) *Log

创建日志

func (*Log) Debug

func (l *Log) Debug(s string, args ...interface{})

func (*Log) Debugf

func (l *Log) Debugf(format string, args ...interface{})

func (*Log) Error

func (l *Log) Error(s string, args ...interface{})

func (*Log) Errorf

func (l *Log) Errorf(format string, args ...interface{})

func (*Log) Fatal

func (l *Log) Fatal(s string, args ...interface{})

func (*Log) Fatalf

func (l *Log) Fatalf(format string, args ...interface{})

func (*Log) Info

func (l *Log) Info(s string, args ...interface{})

func (*Log) Infof

func (l *Log) Infof(format string, args ...interface{})

func (*Log) Panic

func (l *Log) Panic(s string, args ...interface{})

func (*Log) Panicf

func (l *Log) Panicf(format string, args ...interface{})

func (*Log) Warn

func (l *Log) Warn(s string, args ...interface{})

func (*Log) Warnf

func (l *Log) Warnf(format string, args ...interface{})

type RedisWriter

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

为 logger 提供写入 redis 队列的 io 接口

func NewRedisWriter

func NewRedisWriter(key string, cli *redis.Client) *RedisWriter

func (*RedisWriter) Write

func (w *RedisWriter) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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