logx

package
v0.0.0-...-bc1b0c2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DPanic

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

func DPanicc

func DPanicc(ctx context.Context, msg string, fields ...zap.Field)

func Debug

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

func Debugc

func Debugc(ctx context.Context, msg string, fields ...zap.Field)

func Error

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

func Errorc

func Errorc(ctx context.Context, msg string, fields ...zap.Field)

func Fatal

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

func Fatalc

func Fatalc(ctx context.Context, msg string, fields ...zap.Field)

func Info

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

func Infoc

func Infoc(ctx context.Context, msg string, fields ...zap.Field)

func InitLog

func InitLog(app, server string, logpath string)

func SetLevel

func SetLevel(lv string) error

func SyncFlush

func SyncFlush()

func Warn

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

func Warnc

func Warnc(ctx context.Context, msg string, fields ...zap.Field)

func WithLogContext

func WithLogContext(withContext LogWithContext)

Types

type LogWithContext

type LogWithContext func(ctx context.Context, fields ...zap.Field) []zap.Field

Jump to

Keyboard shortcuts

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