logs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 4 Imported by: 8

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

func Alert

func Alert(f interface{}, v ...interface{})

func Async

func Async(msgLen ...int64) *logs.BeeLogger

func Close

func Close()

func Critical

func Critical(f interface{}, v ...interface{})

func Debug

func Debug(f interface{}, v ...interface{})

func Emergency

func Emergency(f interface{}, v ...interface{})

func EnableFuncCallDepth

func EnableFuncCallDepth(b bool)

func Error

func Error(f interface{}, v ...interface{})

func Info

func Info(f interface{}, v ...interface{})

func Informational

func Informational(f interface{}, v ...interface{})

func Notice

func Notice(f interface{}, v ...interface{})

func Reset

func Reset()

func SetLevel

func SetLevel(l int)

func SetLogFuncCall

func SetLogFuncCall(b bool)

func SetLogFuncCallDepth

func SetLogFuncCallDepth(d int)

func SetLogger

func SetLogger(adapter string, config ...string) error

func SetPrefix

func SetPrefix(s string)

func Trace

func Trace(f interface{}, v ...interface{})

func Warn

func Warn(f interface{}, v ...interface{})

func Warning

func Warning(f interface{}, v ...interface{})

Types

type LoggerAdapter

type LoggerAdapter struct {
	*logs.BeeLogger
}

func NewLoggerAdapter

func NewLoggerAdapter() *LoggerAdapter

Jump to

Keyboard shortcuts

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