log

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOG_LEVEL_INFO    = byte(1)
	LOG_LEVEL_WARNING = byte(2)
	LOG_LEVEL_ERROR   = byte(3)
)

Variables

This section is empty.

Functions

func Logx

func Logx()

Logs 切割文件

Types

type Logs

type Logs struct {
	// contains filtered or unexported fields
}
var ServiceLogs *Logs

func (*Logs) Add

func (log *Logs) Add(inter ...interface{}) bool

func (*Logs) Back

func (log *Logs) Back() []byte

func (*Logs) Echo

func (log *Logs) Echo()

func (*Logs) New

func (log *Logs) New(opts ...newOption) *Logs

func (*Logs) Push

func (log *Logs) Push(inter ...interface{}) bool

type Options

type Options struct {
	Level  byte
	Module string
	Action string
	Msg    interface{}
	Date   time.Time
}

Jump to

Keyboard shortcuts

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