part

package
v0.23.2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: MIT Imports: 7 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	On = struct{}{}
)

Functions

This section is empty.

Types

type Config

type Config struct {
	File          string
	Stdout        bool
	Prefix_string map[string]struct{}
	Base_string   []interface{}
}

type Log_interface

type Log_interface struct {
	MQ *m.Msgq
	Config
}

func Copy

func Copy(i *Log_interface) (o *Log_interface)

func New

func New(c Config) (o *Log_interface)

New 初始化

func (*Log_interface) Base

func (I *Log_interface) Base(i ...interface{}) (O *Log_interface)

日志等级 Base 追加到后续输出

func (*Log_interface) Base_add

func (I *Log_interface) Base_add(i ...interface{}) (O *Log_interface)

func (*Log_interface) Block

func (I *Log_interface) Block(timeout int) (O *Log_interface)

Block 阻塞直到本轮日志输出完毕

func (*Log_interface) L

func (I *Log_interface) L(prefix string, i ...interface{}) (O *Log_interface)

func (*Log_interface) Level

func (I *Log_interface) Level(log map[string]struct{}) (O *Log_interface)

Level 设置之后日志等级

func (*Log_interface) Log_show_control

func (I *Log_interface) Log_show_control(show bool) (O *Log_interface)

Open 日志不显示

func (*Log_interface) Log_to_file

func (I *Log_interface) Log_to_file(fileP string) (O *Log_interface)

Open 日志输出至文件

type Msg_item

type Msg_item struct {
	Prefix  string
	Msg_obj []interface{}
	Config
}

Jump to

Keyboard shortcuts

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