zdpgo_log

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 2 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger added in v1.0.0

type Logger struct {
	Log  *log.Logger
	Path string
}

func NewLogger added in v1.0.0

func NewLogger(path string) *Logger

func (*Logger) Error added in v1.0.0

func (logger *Logger) Error(args ...interface{})

记录error类型的日志

func (*Logger) Info added in v1.0.0

func (logger *Logger) Info(args ...interface{})

记录info类型的日志

func (*Logger) Warning added in v1.0.0

func (logger *Logger) Warning(args ...interface{})

记录warning类型的日志

Jump to

Keyboard shortcuts

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