logging

package
v0.0.0-...-399e6d5 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeLogger

func InitializeLogger(config model.AppConfig)

InitializeLogger Initialize a logger for the application.

Types

type ILogger

type ILogger interface {
	DPanic(args ...interface{})
	DPanicf(template string, args ...interface{})
	DPanicw(msg string, kvPairs ...interface{})

	Debug(args ...interface{})
	Debugf(template string, args ...interface{})
	Debugw(msg string, kvPairs ...interface{})

	Error(args ...interface{})
	Errorf(template string, args ...interface{})
	Errorw(msg string, kvPairs ...interface{})

	Fatal(args ...interface{})
	Fatalf(template string, args ...interface{})
	Fatalw(msg string, kvPairs ...interface{})

	Info(args ...interface{})
	Infof(template string, args ...interface{})
	Infow(msg string, kvPairs ...interface{})

	Panic(args ...interface{})
	Panicf(template string, args ...interface{})
	Panicw(msg string, kvPairs ...interface{})

	Warn(args ...interface{})
	Warnf(template string, args ...interface{})
	Warnw(msg string, kvPairs ...interface{})
	Warning(args ...interface{})
	Warningf(template string, args ...interface{})
}

ILogger Interface for the logger used in the application.

var Logger ILogger

Logger Global logger to use where no local logger is available.

func MustGetLogger

func MustGetLogger(name string) ILogger

MustGetLogger Get a logger.

Jump to

Keyboard shortcuts

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