log

package
v0.2.15 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, args ...zap.Field)

Debug forwards debug logs to the root logger

func Error

func Error(msg string, args ...zap.Field)

Error forwards error logs to the root logger

func Fatal

func Fatal(msg string, args ...zap.Field)

Fatal forwards fatal logs to the root logger

func Info

func Info(msg string, args ...zap.Field)

Info forwards info logs to the root logger

func NewLogger

func NewLogger() *zap.Logger

NewLogger returns a configured Zap Logger

func SetLogger

func SetLogger(l *zap.Logger)

SetLogger sets a new logger as the root logger

func Warn

func Warn(msg string, args ...zap.Field)

Warn forwards warn logs to the root logger

func With

func With(args ...zap.Field) *zap.Logger

With returns a new logger with fields persisted

func WithOptions

func WithOptions(args ...zap.Field) *zap.Logger

WithOptions returns a new logger with options persisted

Types

This section is empty.

Jump to

Keyboard shortcuts

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