log

package
v0.0.0-...-d807b53 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const XRequestId = "X-Request-ID"

Variables

This section is empty.

Functions

func Backend

func Backend(logLevel string) (*zap.Logger, error)

func Console

func Console(logLevel string, logPath string) (*zap.Logger, error)

func DefaultLogLevel

func DefaultLogLevel() string

func Error

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

func Errorf

func Errorf(template string, args ...interface{})

func Info

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

func Infof

func Infof(template string, args ...interface{})

func Warn

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

func Warnf

func Warnf(template string, args ...interface{})

func WrapperSentry

func WrapperSentry(l *zap.Logger) (*zap.Logger, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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