log

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: AGPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

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

Debugf logs a formatted debug message

func Errorf

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

Errorf logs a formatted error message

func Fatalf

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

Fatalf logs a formatted fatal message

func GetLogger

func GetLogger() *zap.Logger

GetLogger returns the zap logger

func GetSugaredLogger

func GetSugaredLogger() *zap.SugaredLogger

GetSugaredLogger returns the sugared zap logger

func Infof

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

Infof logs a formatted info message

func InitLogger

func InitLogger(logLevel string)

InitLogger initializes colorized logger

func InitProdLogger added in v0.1.3

func InitProdLogger(logLevel string)

InitProdLogger initializes production logger

func Warnf

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

Warnf logs a formatted warn message

Types

type WatermillAdapter

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

WatermillAdapter represents a logger implementation for Watermill

func (WatermillAdapter) Debug

func (a WatermillAdapter) Debug(msg string, fields watermill.LogFields)

Debug logs a formatted debug message

func (WatermillAdapter) Error

func (a WatermillAdapter) Error(msg string, err error, fields watermill.LogFields)

Error logs a formatted error message

func (WatermillAdapter) Info

func (a WatermillAdapter) Info(msg string, fields watermill.LogFields)

Info logs a formatted info message

func (WatermillAdapter) Trace

func (a WatermillAdapter) Trace(msg string, fields watermill.LogFields)

Trace logs a formatted trace message

func (WatermillAdapter) With

With adds a log fields to the adapter

Jump to

Keyboard shortcuts

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