logging

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogWayConsole = "console"
	LogWayFile    = "file"
)

Variables

This section is empty.

Functions

func Expire

func Expire() time.Duration

func LogDir

func LogDir() string

func LogWay

func LogWay() string

func LogWayOK

func LogWayOK(logway string) bool

func Reset

func Reset(logway, logdir string, verboselevel int) (err error)

func SetExpire

func SetExpire(v time.Duration) error

Types

type DebugWriter

type DebugWriter struct{}

DebugWriter 输出Debug级别日志

func (DebugWriter) Println

func (w DebugWriter) Println(format string, v ...interface{})

type ErrorWriter

type ErrorWriter struct{}

ErrorWriter 输出Error级别日志

func (ErrorWriter) Println

func (w ErrorWriter) Println(format string, v ...interface{})

type InfoWriter

type InfoWriter struct{}

InfoWriter 输出Info级别日志

func (InfoWriter) Println

func (w InfoWriter) Println(format string, v ...interface{})

type WarnWriter

type WarnWriter struct{}

WarnWriter 输出Warn级别日志

func (WarnWriter) Println

func (w WarnWriter) Println(format string, v ...interface{})

Directories

Path Synopsis
Package glog implements logging analogous to the Google-internal C++ INFO/ERROR/V setup.
Package glog implements logging analogous to the Google-internal C++ INFO/ERROR/V setup.

Jump to

Keyboard shortcuts

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