log

package
v0.6.5-beta Latest Latest
Warning

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

Go to latest
Published: May 1, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT = -1
	BLACK   = 0
	RED     = 1
	GREEN   = 2
	YELLOW  = 3
	BLUE    = 4
	PURPLE  = 5
	CYAN    = 6
	WHITE   = 7
)

Variables

This section is empty.

Functions

func NewMiddleware

func NewMiddleware(dir string) pepper.MiddlewareFunc

Types

type Log

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

func NewLog

func NewLog(dir string) *Log

func (*Log) Error

func (l *Log) Error(v ...interface{}) error

func (*Log) Info

func (l *Log) Info(v ...interface{}) error

func (*Log) Log

func (l *Log) Log(c int, b int, text string, v ...interface{}) error

写日志

func (*Log) PrintPrefix

func (l *Log) PrintPrefix(c int, b int, text string)

打印前缀

func (*Log) Warn

func (l *Log) Warn(v ...interface{}) error

Jump to

Keyboard shortcuts

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