logs

package
v0.0.0-...-9976dbc Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

zap日志的封装

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

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

func Error

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

func ErrorWithoutNotice

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

func Fatal

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

func Info

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

func Warn

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

Types

type Log

type Log struct {
	*zap.Logger
}

func With

func With(fields ...zap.Field) *Log

func (*Log) Debug

func (l *Log) Debug(msg string, fields ...zap.Field)

func (*Log) Error

func (l *Log) Error(msg string, fields ...zap.Field)

func (*Log) ErrorWithoutNotice

func (l *Log) ErrorWithoutNotice(msg string, fields ...zap.Field)

func (*Log) Fatal

func (l *Log) Fatal(msg string, fields ...zap.Field)

func (*Log) Info

func (l *Log) Info(msg string, fields ...zap.Field)

func (*Log) Warn

func (l *Log) Warn(msg string, fields ...zap.Field)

func (*Log) With

func (l *Log) With(fields ...zap.Field) *Log

Jump to

Keyboard shortcuts

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