xlog

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: MIT Imports: 7 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(ctx context.Context, v ...interface{})

func Error

func Error(ctx context.Context, v ...interface{})

func Info

func Info(ctx context.Context, v ...interface{})

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func New

func New(opt ...Option) *Logger

func (*Logger) Debug

func (l *Logger) Debug(ctx context.Context, v ...interface{})

func (*Logger) Error

func (l *Logger) Error(ctx context.Context, v ...interface{})

func (*Logger) Info

func (l *Logger) Info(ctx context.Context, v ...interface{})

type Option

type Option func(logger *Logger)

func WithFeishu

func WithFeishu(feishuUrl string) Option

func WithInfo

func WithInfo(serviceName, env string) Option

func WithMode

func WithMode(debug bool) Option

func WithTrace

func WithTrace(traceName string) Option

Jump to

Keyboard shortcuts

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