logger

package
v0.0.0-...-d5338d4 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 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 Logger

type Logger struct {
	// contains filtered or unexported fields
}
var (
	I 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