zerolog

package
v2.8.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Default default global logger
	Default = New()
)

Functions

func Debug

func Debug(s ...interface{})

func Debugf

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

func Error

func Error(s ...interface{})

func Errorf

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

func Fatal

func Fatal(s ...interface{})

func Fatalf

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

func Info

func Info(s ...interface{})

func Infof

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

func SetLevel

func SetLevel(level string)

func Warn

func Warn(s ...interface{})

func Warnf

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

Types

type Logger

type Logger struct {
	*zerolog.Logger
	*logger.Base
	// contains filtered or unexported fields
}

func GetLogger

func GetLogger(category string, writers ...io.Writer) *Logger

func New

func New(writers ...io.Writer) *Logger

func NewSub

func NewSub(root *Logger, category string, writers ...io.Writer) *Logger

func (*Logger) Debug

func (a *Logger) Debug(s ...interface{})

func (*Logger) Debugf

func (a *Logger) Debugf(t string, s ...interface{})

func (*Logger) Error

func (a *Logger) Error(s ...interface{})

func (*Logger) Errorf

func (a *Logger) Errorf(t string, s ...interface{})

func (*Logger) Fatal

func (a *Logger) Fatal(s ...interface{})

func (*Logger) Fatalf

func (a *Logger) Fatalf(t string, s ...interface{})

func (*Logger) GetLogger

func (a *Logger) GetLogger(category string, writers ...io.Writer) *Logger

func (*Logger) Info

func (a *Logger) Info(s ...interface{})

func (*Logger) Infof

func (a *Logger) Infof(t string, s ...interface{})

func (*Logger) SetLevel

func (a *Logger) SetLevel(level string)

func (*Logger) Warn

func (a *Logger) Warn(s ...interface{})

func (*Logger) Warnf

func (a *Logger) Warnf(t string, s ...interface{})

Jump to

Keyboard shortcuts

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