logger

package
v0.0.0-...-a7468fe Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(name, environment, level string)

func SetLogLevel

func SetLogLevel(level string)

Types

type ILogger

type ILogger interface {
	Debug(args ...interface{})
	Info(args ...interface{})
	Warn(args ...interface{})
	Error(args ...interface{})
	Fatal(args ...interface{})
	WithField(key string, value interface{}) ILogger
	WithFields(fields map[string]interface{}) ILogger
}

type Logger

type Logger struct {
	// contains filtered or unexported fields
}
var (
	Log Logger
)

func (Logger) Debug

func (l Logger) Debug(args ...interface{})

func (Logger) Error

func (l Logger) Error(args ...interface{})

func (Logger) Fatal

func (l Logger) Fatal(args ...interface{})

func (Logger) Info

func (l Logger) Info(args ...interface{})

func (Logger) Warn

func (l Logger) Warn(args ...interface{})

func (Logger) WithContext

func (l Logger) WithContext(ctx context.Context) Logger

func (Logger) WithField

func (l Logger) WithField(key string, value interface{}) Logger

func (Logger) WithFields

func (l Logger) WithFields(fields map[string]interface{}) Logger

Jump to

Keyboard shortcuts

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