logx

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 License: MIT Imports: 20 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlyslsSettings added in v1.0.3

func AlyslsSettings(settings ...interface{}) *alyslsSettings

func Debug added in v1.0.2

func Debug(args ...interface{})

func Debugf added in v1.0.2

func Debugf(format string, args ...interface{})

func Error added in v1.0.2

func Error(args ...interface{})

func Errorf added in v1.0.2

func Errorf(format string, args ...interface{})

func Fatal added in v1.0.2

func Fatal(args ...interface{})

func Fatalf added in v1.0.2

func Fatalf(format string, args ...interface{})

func Info added in v1.0.2

func Info(args ...interface{})

func Infof added in v1.0.2

func Infof(format string, args ...interface{})

func InitLoggers added in v1.0.2

func InitLoggers(defines ...[]map[string]interface{})

func Log added in v1.0.2

func Log(level interface{}, args ...interface{})

func LogDir added in v1.0.3

func LogDir(dir ...string) string

func Logf added in v1.0.2

func Logf(level interface{}, format string, args ...interface{})

func NewConsoleLogger added in v1.0.2

func NewConsoleLogger(ch chan []string) *consoleLogger

func NewNoopLogger added in v1.0.2

func NewNoopLogger() *noopLogger

func Panic added in v1.0.2

func Panic(args ...interface{})

func Panicf added in v1.0.2

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

func Trace added in v1.0.2

func Trace(args ...interface{})

func Tracef added in v1.0.2

func Tracef(format string, args ...interface{})

func Warn added in v1.0.2

func Warn(args ...interface{})

func Warnf added in v1.0.2

func Warnf(format string, args ...interface{})

func WithLogger added in v1.0.2

func WithLogger(name string, logger Logger)

Types

type Logger

type Logger interface {
	Log(level interface{}, args ...interface{})
	Logf(level interface{}, format string, args ...interface{})
	Trace(args ...interface{})
	Tracef(format string, args ...interface{})
	Debug(args ...interface{})
	Debugf(format string, args ...interface{})
	Info(args ...interface{})
	Infof(format string, args ...interface{})
	Warn(args ...interface{})
	Warnf(format string, args ...interface{})
	Error(args ...interface{})
	Errorf(format string, args ...interface{})
	Panic(args ...interface{})
	Panicf(format string, args ...interface{})
	Fatal(args ...interface{})
	Fatalf(format string, args ...interface{})
}

func Channel added in v1.0.2

func Channel(name string) Logger

Jump to

Keyboard shortcuts

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