zlog

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug() *zerolog.Event

func Debugf

func Debugf(s string, v ...interface{})

func Error

func Error() *zerolog.Event

func Errorf

func Errorf(s string, v ...interface{})

func Fatal

func Fatal() *zerolog.Event

func Fatalf

func Fatalf(s string, v ...interface{})

func Info

func Info() *zerolog.Event

func Infof

func Infof(s string, v ...interface{})

func SetLevel

func SetLevel(level int)

func Warn

func Warn() *zerolog.Event

func Warnf

func Warnf(s string, v ...interface{})

Types

type Zlogger

type Zlogger struct {
}

func NewZlog

func NewZlog(logdev, loglev int, logfile string, maxsize, maxrotate, maxdays int) *Zlogger

func (*Zlogger) Debugf

func (z *Zlogger) Debugf(s string, v ...interface{})

func (*Zlogger) Errorf

func (z *Zlogger) Errorf(s string, v ...interface{})

func (*Zlogger) Fatalf

func (z *Zlogger) Fatalf(s string, v ...interface{})

func (*Zlogger) Infof

func (z *Zlogger) Infof(s string, v ...interface{})

func (*Zlogger) Warnf

func (z *Zlogger) Warnf(s string, v ...interface{})

Jump to

Keyboard shortcuts

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