log

package
v0.0.0-...-7f5b3d9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(ctx context.Context) *zerolog.Event

func DebugEnabled

func DebugEnabled() bool

DebugEnabled 是否启用了debug日志

func Error

func Error(ctx context.Context) *zerolog.Event

func Info

func Info(ctx context.Context) *zerolog.Event

func NewEntLogger

func NewEntLogger() *entLogger

NewEntLogger create a ent logger

func NewHTTPServerLogger

func NewHTTPServerLogger() *log.Logger

NewHTTPServerLogger create a http server logger

func NewRedisLogger

func NewRedisLogger() *redisLogger

NewRedisLogger create a redis logger

func Struct

func Struct(data any) *zerolog.Event

Struct create a struct log event

func URLValues

func URLValues(query url.Values) *zerolog.Event

URLValues create a url.Values log event

func Warn

func Warn(ctx context.Context) *zerolog.Event

Types

This section is empty.

Jump to

Keyboard shortcuts

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