log

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ctx

func Ctx(ctx context.Context, fieldArr ...core.M) context.Context

Ctx returns a new context with fields injected.

func Debug

func Debug(ctx context.Context, msg string, fields ...core.M)

func Error

func Error(ctx context.Context, msg string, err error, fields ...core.M)

func Fatal

func Fatal(ctx context.Context, msg string, err error, fields ...core.M)

func Info

func Info(ctx context.Context, msg string, fields ...core.M)

func Setup

func Setup(level, format string)

Setup configures the global logger with given log-level and output format. JSON and text formats are supported.

func Warn

func Warn(ctx context.Context, msg string, fields ...core.M)

Types

This section is empty.

Jump to

Keyboard shortcuts

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