log

package
v0.0.0-...-4719e15 Latest Latest
Warning

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

Go to latest
Published: May 7, 2017 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(v ...interface{})

Debug logs a message at debug level.

func Debugf

func Debugf(f string, v ...interface{})

Debugf logs a message at debug level.

func Error

func Error(v ...interface{})

Error logs a message at error level.

func Errorf

func Errorf(f string, v ...interface{})

Errorf logs a message at error level.

func Fatalf

func Fatalf(f string, v ...interface{})

Fatalf Print Log with Error() followed by a call to os.Exit(1).

func Fatalln

func Fatalln(v ...interface{})

Fatalln Print Log with Error() followed by a call to os.Exit(1).

func Info

func Info(v ...interface{})

Info compatibility alias for Info()

func Infof

func Infof(f string, v ...interface{})

Infof compatibility alias for Info()

func Notice

func Notice(v ...interface{})

Notice logs a message at notice level.

func Noticef

func Noticef(f string, v ...interface{})

Noticef logs a message at notice level.

func Panic

func Panic(v ...interface{})

Panic is equivalent to Print() followed by a call to panic().

func Panicf

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

Panicf is equivalent to Printf() followed by a call to panic().

func Panicln

func Panicln(v ...interface{})

Panicln is equivalent to Println() followed by a call to panic().

func Warn

func Warn(v ...interface{})

Warn compatibility alias for Warning()

func Warnf

func Warnf(f string, v ...interface{})

Warnf compatibility alias for Warning()

Types

type Logger

type Logger struct {
	*logs.BeeLogger ``
}

Logger 基于BeegoLog.

func GetLogger

func GetLogger() *Logger

GetLogger 返回默认的自定义Logger

func (*Logger) Output

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

Output = Info

Jump to

Keyboard shortcuts

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