Help us shape the future of Go! Take the 2026 Go Developer Survey

clog

package
v0.0.0-...-5cdc9e4 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: BSD-2-Clause Imports: 6 Imported by: 31

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Level int
	Mode  int
)
View Source
var AddrFunc = func() (string, error) {
	return "127.0.0.1:28702", nil
}

请赋值成自己的获取master addr的函数

View Source
var SplitFunc = func(content string) (contents []string) {
	for bpos, epos, seg, l := 0, 0, 65000, len(content); bpos < l; bpos += seg {
		epos = bpos + seg
		if epos > l {
			epos = l
		}
		contents = append(contents, content[bpos:epos])
	}

	return
}

请赋值成自己的split content的函数

Functions

func Busi

func Busi(sub string, format string, params ...interface{})

func Debug

func Debug(format string, params ...interface{})

func Error

func Error(format string, params ...interface{})

func Info

func Info(format string, params ...interface{})

func Init

func Init(module, subcate string, level int, mode int)

func Warn

func Warn(format string, params ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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