logx

package
v0.0.0-...-f40894c Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(lvl zapcore.Level, msg string) *zapcore.CheckedEntry

Check level check

func Core

func Core() zapcore.Core

Core return log core

func DPanic

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

DPanic output dPanic message

func DPanicf

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

DPanicf output dPanic message

func DPanicw

func DPanicw(msg string, keysAndValues ...interface{})

DPanicw output dPanic message

func Debug

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

Debug output debug message

func Debugf

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

Debugf output debug message

func Debugw

func Debugw(msg string, keysAndValues ...interface{})

Debugw output debug message

func Error

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

Error output error message

func Errorf

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

Errorf output error message

func Errorw

func Errorw(msg string, keysAndValues ...interface{})

Errorw output error message

func Fatal

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

Fatal output fatal message

func Fatalf

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

Fatalf output fatal message

func Fatalw

func Fatalw(msg string, keysAndValues ...interface{})

Fatalw output fatal message

func Info

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

Info output info message

func Infof

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

Infof output info message

func Infow

func Infow(msg string, keysAndValues ...interface{})

Infow output info message

func Log

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

Log output info message

func Logger

func Logger() *zap.Logger

Logger return zap logger instance

func Named

func Named(s string) *zap.Logger

Named return zap instance

func Panic

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

Panic output panic message

func Panicf

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

Panicf output panic message

func Panicw

func Panicw(msg string, keysAndValues ...interface{})

Panicw output panic message

func Sugar

func Sugar() *zap.SugaredLogger

Sugar return zap SugaredLogger instance

func Sync

func Sync() error

Sync log sync

func Warn

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

Warn output warn message

func Warnf

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

Warnf output warn message

func Warnw

func Warnw(msg string, keysAndValues ...interface{})

Warnw output warn message

func With

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

With log with field

func WithOptions

func WithOptions(opts ...zap.Option) *zap.Logger

WithOptions log with option

Types

This section is empty.

Jump to

Keyboard shortcuts

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