standard

package
v0.0.0-...-d6956c3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// 日志
	Out string `toml:"out"`
	// # 日志类别: debug, warn, info,error
	Level string `toml:"level"`
}

Config 日志配置

type ILogger

type ILogger interface {
	Debugc(ctx context.Context, msg string, values ...interface{})
	Infoc(ctx context.Context, msg string, values ...interface{})
	Warnc(ctx context.Context, msg string, values ...interface{})
	Errorc(ctx context.Context, msg string, values ...interface{})

	Debug(msg string, values ...interface{})
	Info(msg string, values ...interface{})
	Warn(msg string, values ...interface{})
	Error(msg string, values ...interface{})
}

Jump to

Keyboard shortcuts

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