dlog

package module
v0.0.0-...-08b6729 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2018 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FATAL = 0
	PANIC = 1
	ERROR = 2
	WARN  = 3
	INFO  = 4
	DEBUG = 5
)

Variables

View Source
var Level int64 = INFO

Functions

func CloseLogFile

func CloseLogFile()

func Debug

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

func Error

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

func ErrorN

func ErrorN(n int, format string, v ...interface{})

func Fatal

func Fatal(format string, v ...interface{})

func Fatalln

func Fatalln(v ...interface{})

func Info

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

func LCS

func LCS(a, b string) int

最长公共子序列

func LD

func LD(a, b string) int

编辑距离

func Panic

func Panic(format string, v ...interface{})

func Println

func Println(v ...interface{})

func SendMail

func SendMail(subject, body string)

func SetLogFile

func SetLogFile(filename string)

func Similarity

func Similarity(a, b string) float64

文本相似度

func Upload

func Upload(link string, file *os.File, filename, date string) ([]byte, error)

func Warn

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

Types

type EmailCache

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

type Logger

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

func (*Logger) Output

func (l *Logger) Output(calldepth int, s string, email bool) error

Jump to

Keyboard shortcuts

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