zerolog

package
v0.70.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package zerolog is a concrete implementation of the log abstractions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v0.46.0

func New(out io.Writer, lvl log.Level, f map[string]interface{}) log.Logger

New creates a new logger.

Types

type Logger

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

Logger abstraction based on zerolog.

func (*Logger) Debug

func (l *Logger) Debug(args ...interface{})

Debug logging.

func (*Logger) Debugf

func (l *Logger) Debugf(msg string, args ...interface{})

Debugf logging.

func (*Logger) Error

func (l *Logger) Error(args ...interface{})

Error logging.

func (*Logger) Errorf

func (l *Logger) Errorf(msg string, args ...interface{})

Errorf logging.

func (*Logger) Fatal

func (l *Logger) Fatal(args ...interface{})

Fatal logging.

func (*Logger) Fatalf

func (l *Logger) Fatalf(msg string, args ...interface{})

Fatalf logging.

func (*Logger) Info

func (l *Logger) Info(args ...interface{})

Info logging.

func (*Logger) Infof

func (l *Logger) Infof(msg string, args ...interface{})

Infof logging.

func (*Logger) Level

func (l *Logger) Level() log.Level

Level return the logging level.

func (*Logger) Panic

func (l *Logger) Panic(args ...interface{})

Panic logging.

func (*Logger) Panicf

func (l *Logger) Panicf(msg string, args ...interface{})

Panicf logging.

func (*Logger) Sub added in v0.23.0

func (l *Logger) Sub(ff map[string]interface{}) log.Logger

Sub returns a sub logger with new fields attached.

func (*Logger) Warn

func (l *Logger) Warn(args ...interface{})

Warn logging.

func (*Logger) Warnf

func (l *Logger) Warnf(msg string, args ...interface{})

Warnf logging.

Jump to

Keyboard shortcuts

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