service

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWebConsoleLog

func NewWebConsoleLog(params ...any) (any, error)

func NewWebCustomLog

func NewWebCustomLog(params ...any) (any, error)

func NewWebRotateLog

func NewWebRotateLog(params ...any) (any, error)

func NewWebSingleLog

func NewWebSingleLog(params ...any) (any, error)

Types

type WebConsoleLog

type WebConsoleLog struct {
	WebLog
}

控制台输出

type WebCustomLog

type WebCustomLog struct {
	WebLog
}

type WebLog

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

func (*WebLog) Debug

func (log *WebLog) Debug(ctx context.Context, msg string, fields map[string]any)

func (*WebLog) Error

func (log *WebLog) Error(ctx context.Context, msg string, fields map[string]any)

func (*WebLog) Fatal

func (log *WebLog) Fatal(ctx context.Context, msg string, fields map[string]any)

func (*WebLog) Info

func (log *WebLog) Info(ctx context.Context, msg string, fields map[string]any)

func (*WebLog) IsLevelEnable

func (log *WebLog) IsLevelEnable(level contract.LogLevel) bool

func (*WebLog) Panic

func (log *WebLog) Panic(ctx context.Context, msg string, fields map[string]any)

func (*WebLog) SetCtxFielder

func (log *WebLog) SetCtxFielder(handler contract.CtxFielder)

func (*WebLog) SetFormatter

func (log *WebLog) SetFormatter(formatter contract.Formatter)

func (*WebLog) SetLevel

func (log *WebLog) SetLevel(level contract.LogLevel)

func (*WebLog) SetOutput

func (log *WebLog) SetOutput(output io.Writer)

func (*WebLog) Trace

func (log *WebLog) Trace(ctx context.Context, msg string, fields map[string]any)

func (*WebLog) Warn

func (log *WebLog) Warn(ctx context.Context, msg string, fields map[string]any)

type WebRotateLog

type WebRotateLog struct {
	WebLog
	// contains filtered or unexported fields
}

单个文件输出,但是自动进行切割

type WebSingleLog

type WebSingleLog struct {
	WebLog
	// contains filtered or unexported fields
}

单个文件输出

Jump to

Keyboard shortcuts

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