logger

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: GPL-3.0 Imports: 4 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 struct {
	Level zerolog.Level
}

func (*Logger) Debug

func (l *Logger) Debug(msg string, tags map[string]interface{})

func (*Logger) Error

func (l *Logger) Error(msg string, err error, tags map[string]interface{})

func (*Logger) Info

func (l *Logger) Info(msg string, tags map[string]interface{})

func (*Logger) Trace

func (l *Logger) Trace(msg string, tags map[string]interface{})

func (*Logger) Warn

func (l *Logger) Warn(msg string, tags map[string]interface{})

type LoggerInterface

type LoggerInterface interface {
	Info(msg string, tags map[string]interface{})
	Warn(msg string, tags map[string]interface{})
	Error(msg string, err error, tags map[string]interface{})
	Debug(msg string, tags map[string]interface{})
	Trace(msg string, tags map[string]interface{})
}

func NewLogger

func NewLogger(level string) LoggerInterface

Jump to

Keyboard shortcuts

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