logs

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AdapterConsole   = "console"
	AdapterFile      = "file"
	AdapterMultiFile = "multifile"
	AdapterMail      = "smtp"
	AdapterConn      = "conn"
	AdapterEs        = "es"
	AdapterJianLiao  = "jianliao"
	AdapterSlack     = "slack"
	AdapterAliLS     = "alils"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

Logger

func NewLogger

func NewLogger(channelLens ...int64) *Logger

NewLogger returns a new BeeLogger. channelLen means the number of messages in chan(used where asynchronous is true). if the buffering chan is full, logger adapters write to file or other way.

func (*Logger) Alert

func (l *Logger) Alert(f interface{}, v ...interface{})

注意 Alert logs a message at alert level.

func (*Logger) Critical

func (l *Logger) Critical(f interface{}, v ...interface{})

严重 Critical logs a message at critical level.

func (*Logger) Debug

func (l *Logger) Debug(f interface{}, v ...interface{})

调试 Debug logs a message at debug level.

func (*Logger) Emergency

func (l *Logger) Emergency(f interface{}, v ...interface{})

紧急 Emergency logs a message at emergency level.

func (*Logger) Error

func (l *Logger) Error(f interface{}, v ...interface{})

错误 Error logs a message at error level.

func (*Logger) Info

func (l *Logger) Info(f interface{}, v ...interface{})

信息 Info compatibility alias for Warning()

func (*Logger) Logger

func (l *Logger) Logger() *logs.BeeLogger

Logger

func (*Logger) Notice

func (l *Logger) Notice(f interface{}, v ...interface{})

提示 Notice logs a message at notice level.

func (*Logger) Print

func (l *Logger) Print(v ...interface{})

Print

func (*Logger) Printf

func (l *Logger) Printf(format string, v ...interface{})

Printf

func (*Logger) Println

func (l *Logger) Println(v ...interface{})

Println

func (*Logger) Warn

func (l *Logger) Warn(f interface{}, v ...interface{})

警告 Warn compatibility alias for Warning()

Jump to

Keyboard shortcuts

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