logger

package
v0.0.0-...-e0b67ce Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debug(args ...interface{})
	Info(args ...interface{})
	Warn(args ...interface{})
	Error(args ...interface{})
}

func CreateLogger

func CreateLogger(loggerName string) Logger

type LogrusLogger

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

func CreateLogrusLogger

func CreateLogrusLogger() *LogrusLogger

func (*LogrusLogger) Debug

func (l *LogrusLogger) Debug(args ...interface{})

func (*LogrusLogger) Error

func (l *LogrusLogger) Error(args ...interface{})

func (*LogrusLogger) Info

func (l *LogrusLogger) Info(args ...interface{})

func (*LogrusLogger) Warn

func (l *LogrusLogger) Warn(args ...interface{})

type ZapLogger

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

func CreateZapLogger

func CreateZapLogger() *ZapLogger

func (*ZapLogger) Debug

func (l *ZapLogger) Debug(args ...interface{})

func (*ZapLogger) Error

func (l *ZapLogger) Error(args ...interface{})

func (*ZapLogger) Info

func (l *ZapLogger) Info(args ...interface{})

func (*ZapLogger) Warn

func (l *ZapLogger) Warn(args ...interface{})

Jump to

Keyboard shortcuts

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